Create a Product Variation

post
Create a product variation

https://api.moltin.com/v2/variations
Request
Response
Request
Headers
Authorization
required
string
The Bearer token used to access the API.
Body Parameters
type
required
string
Represents the type of object being created. (should be product-variation)
name
required
string
A human readable name for this variation.
Response
200: OK
{
"data": {
"type": "product-variation",
"id": "615e4e5a-e43d-4679-9900-191af4724f6d",
"name": "Paint colour"
}
}
cURL
cURL
curl -X POST https://api.moltin.com/v2/variations \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"type": "product-variation",
"name": "Paint colour"
}
}'