48 lines
790 B
Markdown
48 lines
790 B
Markdown
# `PATCH /attributevalue/{id}`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
Update attribute value
|
|
|
|
Updates value text and/or sort for an attribute value.
|
|
|
|
## Path parameters
|
|
|
|
| Param | Required | Type | Description |
|
|
|-------|----------|------|-------------|
|
|
| `id` | yes | integer | |
|
|
|
|
## Body (JSON)
|
|
|
|
| Field | Required | Type | Description |
|
|
|-------|----------|------|-------------|
|
|
| `value` | no | string | |
|
|
| `sort` | no | integer | |
|
|
|
|
```json
|
|
{
|
|
"value": "…",
|
|
"sort": 1
|
|
}
|
|
```
|
|
|
|
## Response `200`
|
|
|
|
Updated attribute value
|
|
|
|
```json
|
|
{
|
|
"attributevalue": {
|
|
"id": 1,
|
|
"attributeId": 1,
|
|
"value": "…",
|
|
"sort": 1,
|
|
"articleCount": 1
|
|
}
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|