Update store page with GraphQL?

Is there any way to create and update pages with GraphQL? I see references to OnlineStorePage in the GraphQL Admin API and Page in the GraphQL Storefront API. Using the Storefront API I’m able to query for a list of pages as well as find a specific page id by handle, but I don’t see any mutations related to pages for updating or creating. Am I missing something?

2 Likes

Hey @rjacobson ,

The Shopify GraphQL Admin API currently does not support the ability to modify, update, or create pages, assets, and themes. Currently if you are looking to utilize this functionality, you will still need to use the Shopify REST Admin API:

https://shopify.dev/docs/admin-api/rest/reference/online-store/page

https://shopify.dev/docs/admin-api/rest/reference/online-store/asset

https://shopify.dev/docs/admin-api/rest/reference/online-store/theme

I would keep an eye out on the Shopify release notes and change logs to see if this ever changes in the future:

https://shopify.dev/concepts/about-apis/versioning/release-notes

https://changelog.shopify.com/

2 Likes

It has been over a year since the least reply to this. Any update on getting pages via graphQL?

4 Likes

Do need this for bulk operations on pages/blog posts etc :disappointed_face:

1 Like

3 years later … any update on Shopify GraphQL Admin API to modify, update, or create pages, assets, and themes?

1 Like