897 B
897 B
POST /propertyname
Protected. Requires a valid session cookie (credentials: 'include').
Create property name
Creates a new property name for the selected company.
Body (JSON)
| Field | Required | Type | Description |
|---|---|---|---|
name |
yes | string | |
sort |
no | integer | |
exclusive |
no | boolean |
{
"name": "…",
"sort": 1,
"exclusive": true
}
Signals
On success, emits SSE signal: propertyname (see GET /events).
Response 201
Created property name
{
"propertyname": {
"id": 1,
"name": "…",
"sort": 1,
"exclusive": true,
"articleCount": 1
}
}
Errors
| Status | Description |
|---|---|
| 400 | Bad request — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.