Links

Departments

The Department model

Key
Type
Description
id
String
The unique identifier for the department which is given by Tiledesk.
name
String
The department name.
id_bot
Array
The bot identifier associated to the department
routing
String
The department routing type. Permitted values: 'assigned', 'pooled'
id_group
String
The group identifier associated to the department
default
Boolean
Determines if it is the default department
status
Number
The request status: VISIBLE : 1, INVISIBLE : 0
attributes
Object
The custom attributes which are set for the department.
createdAt
String
The time when the department was created.
updatedAt
String
The time when the department was updated.
createdBy
String
The unique identifier of the row creator
id_project
String
The unique identifier of the project
get
https://api.tiledesk.com
/v3/:project_id/departments
Get all active departments
Example
curl -v -X GET https://api.tiledesk.com/v3/5b55e806c93dde00143163dd/departments
get
https://api.tiledesk.com
/v3/:project_id/departments/allstatus
Get all departments (active or hidden)
Example
curl -v -X GET -u [email protected]:123456 https://api.tiledesk.com/v3/5b55e806c93dde00143163dd/departments/allstatus
get
https://api.tiledesk.com
/v3/:project_id/departments
Get a department by id
Example
curl -v -X GET -u [email protected]:123456 https://api.tiledesk.com/v3/5b55e806c93dde00143163dd/departments/5b55e806c93dde00143163df
post
https://api.tiledesk.com
/v3/:project_id/departments
Create a new department
Example:
curl -v -X POST -H 'Content-Type: application/json' -u [email protected]:123456 -d '{"name":"new department1", "routing":"pooled"}' https://api.tiledesk.com/v3/5b55e806c93dde00143163dd/departments
put
https://api.tiledesk.com
/v3/:project_id/departments/:id
Update a department
Example:
curl -v -X PUT -H 'Content-Type: application/json' -u [email protected]:123456 -d '{"name":"new department1", "routing":"pooled"}' https://api.tiledesk.com/v3/5b55e806c93dde00143163dd/departments/5b55e806c93dde00143163df
delete
https://api.tiledesk.com
/v3/:project_id/departments/:id
Delete a department
Example:
curl -v -X DELETE -H 'Content-Type: application/json' -u [email protected]:123456 https://api.tiledesk.com/v3/5b55e806c93dde00143163dd/departments/5b55e806c93dde00143163df