Created
September 13, 2017 19:46
-
-
Save curiouscrusher/59ea891c0195cd18f6d13054b8d27734 to your computer and use it in GitHub Desktop.
Add multiple Metafields to a Shopify Product in one API call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PUT https://yourstorename.myshopify.com/admin/products/#{id}.json | |
{ | |
"product": { | |
"metafields": [{ | |
"namespace": "your_namespace", | |
"key": "your_key", | |
"value": "your_value", | |
"value_type": "string" | |
}, | |
{ | |
"namespace": "your_namespace", | |
"key": "your_key", | |
"value": "your_value", | |
"value_type": "string" | |
}, | |
{ | |
"namespace": "your_namespace", | |
"key": "your_key", | |
"value": "your_value", | |
"value_type": "string" | |
}, | |
{ | |
"namespace": "your_namespace", | |
"key": "your_key", | |
"value": "your_value", | |
"value_type": "string" | |
}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment