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

Prompt for '{"errors":"Not Found"}' error when creates or updates an asset for a theme #261

Closed
2 tasks
wumahoo opened this issue Apr 25, 2023 · 11 comments
Closed
2 tasks
Labels

Comments

@wumahoo
Copy link

wumahoo commented Apr 25, 2023

Issue summary

Document
https://shopify.dev/docs/api/admin-rest/2023-04/resources/asset#put-themes-theme-id-assets

Requirements

  • php 8.1
  • shopify/shopify-api 4.3

Expected behavior

PUT /admin/api/2023-04/themes/{themeId}/assets.json

payload

{
    "asset": {
       "key": "templates/xxxxx.liquid",
       "value": "xxxxxx"
   }
}
@adilizm
Copy link

adilizm commented Jun 17, 2023

same
i have that problem did you fix it ?

@wumahoo
Copy link
Author

wumahoo commented Jun 19, 2023

@adilizm

Starting with Admin API 2023-04, Asset resource PUT or DEL requests are restricted using the write_themes access scope. If an app that's distributed in the Shopify App Store needs to use Asset resource PUT or DEL requests, then it needs to be granted an exemption by Shopify to use the write_themes access scope

https://shopify.dev/docs/apps/online-store/other-integration-methods/asset

@adilizm
Copy link

adilizm commented Jun 19, 2023

Thanks this was very helpful i was confused i can get all assets but create, update and get single asset was error thanks again

@github-actions
Copy link

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Aug 19, 2023
@github-actions
Copy link

github-actions bot commented Sep 2, 2023

We are closing this issue because it has been inactive for a few months.
This probably means that it is not reproducible or it has been fixed in a newer version.
If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.

If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines

Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2023
@khanakia
Copy link

khanakia commented Dec 21, 2023

I already have the write_themes, read_themes scopes and still getting them while updating theme assets

PUT https://test.myshopify.com/admin/api/2023-10/themes/127604883630/assets.json

{
    "errors": "Not Found"
}

But If i use the older version 2023-01 then it works

@hyaminh2303
Copy link

hyaminh2303 commented Dec 24, 2023

I already have the write_themes, read_themes scopes and still getting them while updating theme assets

PUT https://test.myshopify.com/admin/api/2023-10/themes/127604883630/assets.json

{
    "errors": "Not Found"
}

But If i use the older version 2023-01 then it works

Same issue here, it worked well when I rollbacked to API version '2023-01'

@somin-parate
Copy link

Is there any solution here?

@krisforkpoint
Copy link

Same issue here, both scopes in place.

@somin-parate
Copy link

@krisforkpoint yes you need to fill out the form here and in public url need to write app still in development https://docs.google.com/forms/d/e/1FAIpQLSfZTB1vxFC5d1-GPdqYunWRGUoDcOheHQzfK2RoEFEHrknt5g/viewform

Once you submit that within 2-3 days they will approve your request and you can use the assets api.

@krisforkpoint
Copy link

Thank you @somin-parate, I will submit a request and see if Shopify approves it.

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

6 participants