cURL
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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the department
The name of the department
The color code of the department
Successful response
"<success message>"