POST
/
api
/
departments
/
{departmentId}
/
rooms
/
{roomId}
/
desks
curl --request POST \
  --url http://localhost/api/departments/{departmentId}/rooms/{roomId}/desks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "FIXED"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "type": "FIXED",
  "equipment": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

departmentId
string
required
roomId
string
required

Body

application/json
name
string
type
enum<string>
Available options:
FIXED,
SHARED

Response

200
*/*
Desk successfully created
id
string
name
string
type
enum<string>
Available options:
FIXED,
SHARED
equipment
string[]
roomId
string
departmentId
string