u
This commit is contained in:
44
docs/api/routes/attributename.post.md
Normal file
44
docs/api/routes/attributename.post.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# `POST /attributename`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Create attribute name
|
||||
|
||||
Creates an attribute name for the selected company.
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "…",
|
||||
"sort": 1,
|
||||
"exclusive": true
|
||||
}
|
||||
```
|
||||
|
||||
## Response `201`
|
||||
|
||||
Created attribute name
|
||||
|
||||
```json
|
||||
{
|
||||
"attributename": {
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"sort": 1,
|
||||
"exclusive": true,
|
||||
"values": [
|
||||
{
|
||||
"id": 1,
|
||||
"attributeId": 1,
|
||||
"value": "…",
|
||||
"sort": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user