Files
dashback/docs/api/routes/propertyname/order.md
2026-10-09 19:02:15 +02:00

46 lines
735 B
Markdown

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