Issue with "write_themes" and "write_themes_assets" scopes in GraphQL API

Hi,

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:

  1. Is write_themes_assets meant to be an implicit sub-scope of write_themes?
  2. Is there any upcoming fix or update related to this issue, or a workaround that could help resolve this error?
  3. 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.

Hey Jerome,

If you try the same mutation using the GraphiQL app, do you see the same error?

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

Yes, I tested with the GraphQL app.

The write_themes_assets scope is currently limited - if you do need it, you can submit via this form: Online Store Protected Scope Exemption Request

1 Like

@Sumanth_Jois this seems like it is apparently a requirement to use what I mentioned in your topic.

1 Like

From New GraphQL Product APIs to GraphQL Admin API Troubleshooting

Added general-gql-troubles

Thank you for your reply

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