Shopify API Access Denied for themeUpdate Mutation.

Solved

Shopify API Access Denied for themeUpdate Mutation.

shiv41
Shopify Partner
1 0 0

Hello Shopify Community,

I am trying to use the themeUpdate mutation in the Shopify GraphQL API to enable an app embed block, but I am getting an Access Denied error. Here is the response I am receiving:

What I Have Tried So Far

1. I have ensured that my app has the write_themes scope.
2. I am using a Shopify Partner account for testing.
3. I have checked the Shopify API documentation, but it does not mention any recent restrictions on themeUpdate.

My Questions

1. Do I really need Shopify's exemption to modify themes, even with the write_themes permission?
2. If an exemption is required, what is the approval process timeline for this?
3. Is there an alternative way to achieve app embed activation without requiring themeUpdate?

Any guidance or official clarification would be greatly appreciated. Thank you! 

Accepted Solution (1)

Promer-Alena
Shopify Partner
250 25 95

This is an accepted solution.

1. Even with write_themes, Shopify locked down themeUpdate, so you can’t just modify themes through the API. They’re pushing everyone toward Theme App Extensions, so direct changes like this aren’t really encouraged anymore

2. You’ll have to reach out to Shopify Partner Support and request access, but it could take days or even weeks, and there’s no guarantee they’ll approve it unless you have a solid reason

3. The easiest way is just asking users to enable your app embed manually in theme settings. If you want a more seamless setup, go with Theme App Extensions, that’s Shopify’s preferred way, and you won’t have to deal with these permission headaches 

View solution in original post

Reply 1 (1)

Promer-Alena
Shopify Partner
250 25 95

This is an accepted solution.

1. Even with write_themes, Shopify locked down themeUpdate, so you can’t just modify themes through the API. They’re pushing everyone toward Theme App Extensions, so direct changes like this aren’t really encouraged anymore

2. You’ll have to reach out to Shopify Partner Support and request access, but it could take days or even weeks, and there’s no guarantee they’ll approve it unless you have a solid reason

3. The easiest way is just asking users to enable your app embed manually in theme settings. If you want a more seamless setup, go with Theme App Extensions, that’s Shopify’s preferred way, and you won’t have to deal with these permission headaches