POST
/
api
/
departments
curl --request POST \
  --url https://api.atendai.com/api/departments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "color": "<string>"
}'
{
  "message": "<success message>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

departmentId
string
required

The ID of the department

Body

application/json

Response

200
application/json
Successful response

The response is of type object.