Skip to main content

Create Variation Option

Add a new variation option to a store product. Variation options define properties like "Size" or "Color" and their possible values.

Endpointโ€‹

POST /v1/store-products/{id}/variation-options

Authenticationโ€‹

Requires an API key with the store:write scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe store product ID

Request Bodyโ€‹

FieldTypeRequiredDescription
namestringYesOption name (max 255 characters), e.g., "Size", "Color"
valuesarrayNoList of possible string values for this option (e.g., ["Small", "Medium", "Large"])
tip

You can create the option without values first and add values later using the Update Variation Option endpoint.

Responseโ€‹

Success (201 Created)โ€‹

{
"data": {
"id": 1,
"name": "Size",
"values": ["Small", "Medium", "Large"]
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-02-15T12:00:00+00:00"
}
}

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks store:write scope
404resource_not_foundStore product does not exist
422validation_errorInvalid request body
422variations_not_enabledProduct does not have variations enabled
note

You must enable variations on the product before creating variation options. Update the product with variations: true using the Update Store Product endpoint.

Example Requestโ€‹

curl -X POST "https://app.equipdash.com/api/v1/store-products/1/variation-options" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"name": "Size",
"values": ["Small", "Medium", "Large"]
}'