The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Requires themes
access scope.
A theme controls the look and feel of a Shopify online store.
A store can have a maximum of 20 themes, one of which is the published theme that customers see when they visit the online store. Customers can't see unpublished themes. When you publish a theme, the previously published theme becomes unpublished.
To modify theme files after they're uploaded, use the Asset resource. To learn how to create your own theme, refer to Building themes
null
if the store's theme isn't made by Shopify, or if it wasn't installed from the Theme Store.A new theme is always unpublished by default. To publish a theme when you create it, include
"role": "main"
in the POST request. The theme will be published only after all
of its files have been extracted and stored by Shopify, which might take a couple of minutes.