Skip to main content

Update Variation Option

Update an existing variation option. Only include the fields you want to change.

Endpointโ€‹

PUT /v1/store-products/{id}/variation-options/{optionId}

Authenticationโ€‹

Requires an API key with the store:write scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe store product ID
optionIdintegerpathThe variation option ID

Request Bodyโ€‹

All fields are optional. Only included fields will be updated.

FieldTypeDescription
namestringOption name (max 255 characters)
valuesarrayList of possible string values for this option
caution

Updating the values array replaces all existing values. If you remove a value that is used by an existing product variation, the variation will retain its current option value but the value will no longer appear in the option's list.

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"id": 1,
"name": "Size",
"values": ["XS", "Small", "Medium", "Large", "XL"]
},
"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 or variation option does not exist
422validation_errorInvalid request body

Example Requestโ€‹

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