You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get shopify.asset.create to add a new file to a theme. I know the theme ID is correct as I am able to use asset.get to retrieve a file. But asset.create and asset.update both return 404 errors. I'm using the same params that other posts have shown to be successful. Does anyone see what's wrong?
Starting with Admin API 2023-04, if an app distributed through the Shopify App Store uses the Asset resource to create, edit or delete a theme's asset, you need to request the required protected access scope. In most cases, you shouldn't use the Asset resource. To learn more about when you can use the Asset resource, and how to migrate, refer to the [Asset resource](https://shopify.dev/docs/apps/online-store/other-integration-methods/asset).
Basically, starting in 2023-04, you can't update or delete assets anymore without Shopify granting you the required access scopes.
I guess this is why shopify-api-node is throwing 404's on those endpoints.
I can't get shopify.asset.create to add a new file to a theme. I know the theme ID is correct as I am able to use asset.get to retrieve a file. But asset.create and asset.update both return 404 errors. I'm using the same params that other posts have shown to be successful. Does anyone see what's wrong?
Response:
The text was updated successfully, but these errors were encountered: