Admin GraphQL API2024-10
Introducing theme and theme file management in the Admin GraphQL API
As of API version 2024-10, you can use the admin API to manage Online Store Themes. This feature provides parity with our REST API for managing themes and theme files.
What's New
New queries:
theme
to query an individual theme by IDthemes
to query many themes by role or name
objects expose a
files
query which can be used to fetch the metadata and content of files in a theme. Multiple files can be requested at once, speeding up operations that need to fetch many files.
New mutations for themes:
- upload a new theme
- delete an unpublished theme
- publish a theme
- update the name of a theme
New mutations for theme files:
- copy files from one location to another
- delete files in a theme
- write data to files in a theme
Learn more about these changes on Shopify.dev
Was this section helpful?