Update store page with GraphQL?

Update store page with GraphQL?

rjacobson
Visitor
1 0 2

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?

Replies 4 (4)

hassain
Shopify Staff (Retired)
624 104 188

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/

To learn more visit the Shopify Help Center or the Community Blog.

JoshHighland
Shopify Partner
213 12 76

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

SEO Manager - The all-in-One SEO solution for Shopify
A powerful suite of SEO tools that gets you found in Google results

- Install SEO Manager -
Tommytks
Tourist
4 0 1

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

den232
Shopify Partner
213 8 55

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