Skip to main content

Update Variation

Update an existing variation.

Endpointโ€‹

PATCH /v1/products/{id}/variations/{variationId}

Authenticationโ€‹

Requires an API key with the products:write scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe product ID
variationIdintegerpathThe variation ID

Request Bodyโ€‹

All fields are optional. Only include fields you want to update.

FieldTypeDescription
skustringNew SKU
descriptionstringShort explainer shown under the variation name when customers choose an option (max 255 characters). Pass null to clear it.
imagestringNew image URL
valuesarrayNew property values (replaces all existing)

Responseโ€‹

Success (200 OK)โ€‹

Returns the updated variation.

{
"data": {
"id": 3,
"sku": "BIKE-L-RED-V2",
"display_name": "BIKE-L-RED-V2",
"description": "Riders 5'9\" and up",
"image": null,
"values": [
{
"property_id": 1,
"property_name": "Size",
"value": "Large"
},
{
"property_id": 2,
"property_name": "Color",
"value": "Red"
}
]
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-02-01T11:00:00+00:00"
}
}

Example Requestโ€‹

curl -X PATCH "https://app.equipdash.com/api/v1/products/1/variations/3" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sku": "BIKE-L-RED-V2"
}'

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
403insufficient_scopeAPI key lacks products:write scope
404resource_not_foundProduct or variation not found
422validation_errorInvalid request data