Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to save an asset using the Shopify AP #1297

Closed
Gopinath-M opened this issue Mar 28, 2024 · 1 comment
Closed

Trying to save an asset using the Shopify AP #1297

Gopinath-M opened this issue Mar 28, 2024 · 1 comment
Labels

Comments

@Gopinath-M
Copy link

shopify_api - 13.4
api_version - 2023-10

I'm encountering an issue while trying to save an asset using the Shopify API. Here's the code snippet I'm using:

asset.theme_id = 135230488633
asset.key = "templates/index.liquid"
asset.value = "

We are busy updating the store for you and will be back within the hour.

"
asset.save!

However, I'm getting the following error message:

{"errors":"Not Found","error_reference":"If you report this error, please include this id: 7ccccd56-b80f-425b-9a08-5df2e125ba8b-1711595619."}

Screenshot from 2024-03-28 08-47-06

Could you please help me understand why this error is occurring and how I can fix it?

@sle-c
Copy link
Contributor

sle-c commented Mar 28, 2024

Hi @Gopinath-M , this is most likely because your app doesn't have the required access scope. Starting from 2023-04, your app needs to request the write_themes scope from Shopify. Here are more information about this requirement. I'll close this issue because this is not related to the library.

@sle-c sle-c closed this as completed Mar 28, 2024
@sle-c sle-c added the support label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants