Create a Product Variation
POST
Create a product variation
https://api.moltin.com/v2/variation
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Body:
Name | Required | Type | Description |
---|---|---|---|
type | Required | string | Represents the type of object being created. (should be product-variation). |
name | Required | string | A human readable name for this variation. |
200 OK
{
"data": {
"type": "product-variation",
"id": "615e4e5a-e43d-4679-9900-191af4724f6d",
"name": "Paint color"
}
}
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 color"
}
}'