As seen in the image the user can add custom metafields to the products, how can I create new products and set metafields? How do I access them? I can not see anything on /product api, is there another api im missing?
So I figured out how to set the metafield property with put request: {“product”:{“id”:632910392,“metafields”:[{“key”:“Colors”,“value”:“newvalue”,“type”:“single_line_text_field”,“namespace”:“custom”}]}}
But if the field has an existing value then I get the following error when i try to update the value.
Key: must be unique within this namespace on this resource