40 lines
657 B
Markdown
40 lines
657 B
Markdown
# `PUT /attributename/order`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
Reorder attribute names
|
|
|
|
Updates the display sort order of attribute names for the selected company.
|
|
|
|
## Body (JSON)
|
|
|
|
| Field | Required | Type | Description |
|
|
|-------|----------|------|-------------|
|
|
| `attributenameIds` | yes | integer[] | |
|
|
|
|
```json
|
|
{
|
|
"attributenameIds": [
|
|
1
|
|
]
|
|
}
|
|
```
|
|
|
|
## Signals
|
|
|
|
On success, emits SSE signal: `attributename` (see [`GET /events`](../events.md)).
|
|
|
|
## Response `200`
|
|
|
|
Reordered successfully
|
|
|
|
```json
|
|
{
|
|
"ok": true
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|