Update store page with GraphQL?

Highlighted

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?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
622 95 110

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/

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes