Hi all,
In order to conserve calls to the API, I have been trying for the last couple of days to issue a PUT request against a specific product endpoint (i.e. https://help.shopify.com/api/reference/product#update) and update not only the product variants, but also update associated product metafields. The update works except when I include existing metafields.
Even when I include the existing metafield ID in the metafield portion of the array, I get a 4xx response telling me that there is a key collision in the metafield namespace. This suggests to the me that the API thinks I am trying to create the metafield, rather than update it.
I have all but given up (and have started pursuing a more call-intensive field-by-field caching and update strategy), but a support rep told me today that he thought this was possible.
Can anyone shed any light on using PUT to update a product AND its extant metafields? Is this possible? Can you share a properly formatted JSON request body that succeeds in doing this?
I appreciate any help, even if it’s a definitive no. Doing the suboptimal is much less galling when it is inevitable.
