Skip to content

Set property value on variant

PUT
/product-variant-property/variants/{stockKeepingUnitId}/properties/{propertyKeyId}
Required scope: viskan:product:update

Sets or updates the value of a single property key on a product variant. PUT is full replacement — any existing values not in the request are removed. For raw types (STRING, INTEGER, FLOAT, BOOLEAN, HTML): use value for a single value or values for multiple. Each value is an object: {"value": "Gold", "translations": [{"languageCode": "sv", "name": "Guld"}]}. Prefer a single value; for multiple reusable values, consider MULTI_SELECT. For SINGLE_SELECT: use propertyValueId. For MULTI_SELECT: use propertyValueIds.

Parameters

Path parameters

stockKeepingUnitId  integer
The unique identifier of the product variant.
propertyKeyId  integer
The unique identifier of the property key.

Request body

Response

The property value was set successfully.