47 lines
827 B
Markdown
47 lines
827 B
Markdown
# `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)
|
|
|
|
```json
|
|
[
|
|
166
|
|
]
|
|
```
|
|
|
|
## Response `200`
|
|
|
|
Updated article attribute values
|
|
|
|
```json
|
|
{
|
|
"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`._
|