I’m currently developing a Shopify app using the GraphQL API (version 2024-10) to update theme files via the themeFilesUpsert mutation. I have the read_themes and write_themes permissions set correctly, but I’m encountering the following error:
Access denied for themeFilesUpsert field. Required access: The user must have write_themes and write_themes_assets.
However, the write_themes_assets scope does not appear to exist in the official documentation or in the list of available scopes in Shopify. This is blocking my implementation, and I can’t proceed.
I would like to know:
Is write_themes_assets meant to be an implicit sub-scope of write_themes?
Is there any upcoming fix or update related to this issue, or a workaround that could help resolve this error?
Has anyone else encountered this, and if so, how did you resolve it?
Any help or insights would be greatly appreciated! Thanks in advance for your support.
Are you using the online session tokens or offline? If you’re using online session tokens, this error could be triggered if the staff account doesn’t have the right permissions to make changes, since your error says The user must have and not Access denied or something along those lines
Hi @Liam-Shopify, i did submit form and Shopify reply me that my app has already accepted scope. But i do not see the scope update in my partner, my app can not also update scope to existed accessTokens.
I asked Shopify staff, but they told me come back here