younifyd
Menu

pageCreate

Creates a Page for the online store. Pages contain custom content like "About Us" or "Contact" information that merchants display outside their product catalog.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the pageCreate action (under Page).
  3. Fill in the fields below, then reference the result from later steps as {{pagecreate.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation PageCreate($page: PageCreateInput!) {
  pageCreate(page: $page) {
    page {
      body
      bodySummary
      createdAt
      defaultCursor
      handle
      id
      isPublished
      publishedAt
      templateSuffix
      title
      updatedAt
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

pageobjectrequired

The properties of the new page.

handlestring
bodystring
isPublishedboolean
publishDatestring
templateSuffixstring
metafieldsarray<object>5 fields
titlestringrequired
json
{
  "page": {
    "title": "string",
    "handle": "string",
    "body": "string",
    "isPublished": false,
    "publishDate": "string",
    "templateSuffix": "string",
    "metafields": [
      {
        "id": "string",
        "namespace": "string",
        "key": "string",
        "value": "string",
        "type": "string"
      }
    ]
  }
}

Response

Read the result with {{pagecreate.response.data.data.pageCreate}}. If the API returns errors, the step fails and they are at {{pagecreate.response.data.errors}}.

pageobject
bodystring
bodySummarystring
createdAtstring
defaultCursorstring
handlestring
idstring
isPublishedboolean
publishedAtstring
templateSuffixstring
titlestring
updatedAtstring
userErrorsarray<object>
codeobject
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

Was this page helpful?