Update a Product Variation

put
Update a Product Variation

https://api.moltin.com/v2/variations/:id
Request
Response
Path Parameters
id
required
string
The ID of the variation you wish to update
Headers
Authorization
required
string
The Bearer token used to access the API.
Body Parameters
id
required
string
The ID of the variation being updated
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": "1838ded2-3726-4288-bd82-7c4f14376aac",
"name": "Colour"
}
}
cURL
curl -X PUT https://api.moltin.com/v2/variations/:id \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"type": "product-variation",
"id": "XXXX",
"name": "Color schemes"
}
}'