u
This commit is contained in:
40
docs/api/routes/propertyname.post.md
Normal file
40
docs/api/routes/propertyname.post.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# `POST /propertyname`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Create property name
|
||||
|
||||
Creates a new property name for the selected company.
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "…",
|
||||
"sort": 1
|
||||
}
|
||||
```
|
||||
|
||||
## Response `201`
|
||||
|
||||
Created property name
|
||||
|
||||
```json
|
||||
{
|
||||
"propertyname": {
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"sort": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | Bad request — `{"error":"…"}` |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user