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
- Add a step and choose the Shopify connector.
- Pick the pageCreate action (under Page).
- 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.
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.
{
"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}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?