Create a Product Variation

Create a product variation

POST https://api.moltin.com/v2/variations

Headers

NameTypeDescription

Authorization

string

The Bearer token used to access the API.

Request Body

NameTypeDescription

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": "615e4e5a-e43d-4679-9900-191af4724f6d",
        "name": "Paint colour"
    }
}
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"
      }
    }'

Last updated