Files
dashback/docs/api/routes/article/_sku/attributevalue.put.md
2026-10-01 10:19:16 +02:00

1.0 KiB

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)

Field Required Type Description
attributevalues yes any[] Array of attribute value IDs (numbers) or objects with id or attributeValueId
{
  "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.