POST
/
api
/
departments
/
{departmentId}
/
rooms
curl --request POST \
  --url http://localhost/api/departments/{departmentId}/rooms \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "available": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "available": true,
  "desks": [
    "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

Body

application/json
name
string
available
boolean

Response

200
*/*
Room successfully created
id
string
name
string
departmentId
string
available
boolean
desks
string[]