Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

404 Error when saving theme asset via Shopify REST Admin API

404 Error when saving theme asset via Shopify REST Admin API

shubhamdankhara
Shopify Partner
1 0 1

I am trying to update the theme.liquid file using the Shopify REST Admin API for theme assets, and I have accepted the write_theme scope. My goal is to add a meta tag inside the value field. However, I keep getting the following error:Screenshot from 2024-09-20 11-48-08.png

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

I'm using the create or update theme asset endpoint, but it returns a "Not Found" error when trying to save the asset.

Here are some details:

  • I am updating the theme.liquid file.
  • I have verified that the theme exists and the write_theme scope is enabled in my app.
  • I have ensured that I am targeting the correct theme by specifying the theme_id in the request.


My API Call :
Screenshot from 2024-09-20 11-51-45.png

 

Replies 0 (0)