I have a metafield on Shop resource which I am trying to update using Postman. the field type is Integer and I am making the request as below however I am not able to do it and getting the 404 error.
I have retrieved the metafield as -
Solved! Go to the solution
This is an accepted solution.
Hi @sachin16 ,
From your screenshot you are hitting the URL of "...myshopify.com/admin/metafields/33145232974.json" However from the body of your request you are specifying the metafield ID is 12305803870293. So which is the metafield ID, 33145232974 or 12305803870293? These values need to be consistent. My assumption is that Metafield ID 33145232974 does not exist which is why you are getting a 404 'Not Found' error from your request.
If after this update you still are seeing errors, feel free to send me the value of the X-Request-ID response header from the Shopify API error response and I should be able to look into this further
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution