Update a Product Variation

Update a Product Variation

PUT https://api.moltin.com/v2/variations/:id

Path Parameters

NameTypeDescription

id

string

The ID of the variation you wish to update

Headers

NameTypeDescription

Authorization

string

The Bearer token used to access the API.

Request Body

NameTypeDescription

id

string

The ID of the variation being updated

type

string

Represents the type of object being created. (should be product-variation)

name

string

A human readable name for this variation.

{
    "data": {
        "type": "product-variation",
        "id": "1838ded2-3726-4288-bd82-7c4f14376aac",
        "name": "Colour"
    }
}
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"
      }
    }'

Last updated