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 0

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)