858 B
858 B
PUT /article/{sku}/attributevalue
Protected. Requires a valid session cookie (credentials: 'include').
Bulk set article attribute values
Replaces all attribute values for an article. Enforces exclusive constraint (max one value per exclusive attribute).
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
sku |
yes | string | Article SKU |
Body (JSON)
{
"attributevalues": [
"…"
]
}
Response 200
Updated article attribute values
{
"attributevalues": [
{
"id": 1,
"articleId": 1,
"attributeId": 1,
"attributeName": "…",
"exclusive": true,
"attributeValueId": 1,
"value": "…",
"sort": 1
}
]
}
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.