is it possible to add multiple meta field information in one request?

New Member
2 0 0
is it possible to add multiple meta field information in one request?


{ "product": { "id": 632910392, "metafields": [ { "key": "new", "value": "newvalue", "value_type": "string", "namespace": "global" }. { "key": "new2", "value": "newvalue", "value_type": "string", "namespace": "global" } ] } }

 

0 Likes
Highlighted
Shopify Expert
99 17 12

@yujd13 - https://stackoverflow.com/questions/38577679/shopify-adding-multiple-metafields 

 

Use a PUT request and not POST (only allows for a single metafield in a call)

1 Like
New Member
2 0 0

I actually saw that post, it turns out the key has to not already exist for the PUT request to work

0 Likes