Closed tman16 closed 2 years ago
See https://github.com/MONEI/Shopify-api-node#metafields.
Nvm, you are updating a metafield by ID. It should work, I don't know.
params
should be
{id: 123456789, value: "new value here", type: "single_line_text_field"}`
and not
{metafield: {id: 123456789, value: "new value here", type: "single_line_text_field"}}
I'm closing this as answered.
I am having issues updating the product metafield, I am using the following:
let params = {metafield: {id: 123456789, value: "new value here", type: "single_line_text_field"}}
await shopify.metafield.update(123456789, params);
The response gives the original value and not what it should be updated to.