Hi all, I want to create a demo theme in our app so that users can try out some features. If I use the REST API, there will be warnings and it may not pass the moderation step when uploading the theme to the Shopify app store.
I see some apps on the store have done this, but I think they are using the REST API
Now with the GraphQL API, what can I do?
Hey -can you try with a different theme (eg: fresh version of Dawn) to rule out that it’s something on the theme that’s blocking the mutation from working?
Hi, the problem here is not which theme, I think the problem is that I have a wrong approach to how the API works or the API does not support creating themes with role DEMO
Hey - digging into this a bit more, so the DEMO role is reserved for when you are previewing a theme from the Shopify Theme Store, before purchasing - you won’t be able to set a theme with this role to publish. Can you use a theme that doesn’t have this role?
I noticed the ROLE field in the “2025-04 release candidate” version, but it only supports UNPUBLISHED and DEVELOPMENT roles. Unfortunately, I might have to implement it differently