404 error for /admin/api/2023-04/themes/{themesID}/assets.json

404 error for /admin/api/2023-04/themes/{themesID}/assets.json

manhbv
Shopify Partner
2 0 3
Hello, I found error for api 2023-04 assets
Error message:
{
"errors": "Not Found"
}
Replies 7 (7)

garyrgilbert
Shopify Partner
410 41 169

Hello,

 

Did you try to access that via the browser URL?

 

If so thats the problem. I just did it via POSTMAN with the appropriate accesstoken and it works just fine.

 

Cheers,

 

Gary 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
manhbv
Shopify Partner
2 0 3

Sorry I am missing the method.
I have tried with other methods like PUT, POST and they all fail

garyrgilbert
Shopify Partner
410 41 169

POSTMAN is a website that makes it easy to test apis. I tested the endpoint via POSTMAN and it worked fine.

 

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
viktor_87
Shopify Partner
10 0 2

I'm having the same issue.
I just rolledback from API version 2023-04 to 2023-01 and it works.
So using PUT to themes gives 404 for the 2023-04 version.
I also tried the new API version 2023-07 which also gives 404.
I can't find any difference in the API documentation, except scopes which I have (and if that was the case should a 401 be returned instead of a 404).

Have you identified the issue?

huzhop
Shopify Partner
9 0 5

From version 2023-04 will no longer be available. Shopify requires us to submit a request for an exemption.

viktor_87
Shopify Partner
10 0 2

So going forward, what's the new way of doing this operation?
Any guides on how to migrate to the new API version?

huzhop
Shopify Partner
9 0 5

You can only fill out the form for your application to be exempted. If you still want to use the API to update assets.

 

This is essential information for you

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