Links

Autocomplete Department

Autocomplete the department name.
HTTP Method
URL
Requires Auth
GET
/api/v1/livechat/department.autocomplete
yes
Permissions required:
  • view-livechat-departments
  • view-l-room

Query Parameters

Key
Example Value
Description
selector*
{ "exceptions" : [], "conditions" : {}}
Enter the exceptions or the conditions that you want to search for.
onlyMyDepartments
true
Only displays the departments that you are assigned to. The value can be boolean true or false.
showArchived
true
The result includes archived departments. The value can be boolean true or false.

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/livechat/department.autocomplete?selector={} \
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

Example Response

{
"departments": [
{
"_id": "qajzu7WaBRoQBpq6Z",
"enabled": true,
"name": "Brazil",
"description": "",
"numAgents": 3,
"showOnRegistration": false,
"showOnOfflineForm": true,
"email": "[email protected]",
"_updatedAt": "2021-06-23T06:02:02.931Z",
"chatClosingTags": [],
"maxNumberSimultaneousChat": "",
"requestTagBeforeClosingChat": false,
"type": "d",
"waitingQueueMessage": "",
"abandonedRoomsCloseCustomMessage": "",
"departmentsAllowedToForward": "",
"offlineMessageChannelName": "",
"visitorInactivityTimeoutInSeconds": "",
"ancestors": []
},
{
"_id": "NhnC9dBwFonZqSQ5m",
"enabled": true,
"name": "CSM and Support",
"description": "",
"showOnRegistration": true,
"showOnOfflineForm": false,
"requestTagBeforeClosingChat": false,
"email": "[email protected]",
"chatClosingTags": [],
"offlineMessageChannelName": "",
"abandonedRoomsCloseCustomMessage": "",
"waitingQueueMessage": "",
"departmentsAllowedToForward": [
"CAJioQNAvLnYWTy8i",
"Z2KWYBJQFR7AzfmQL"
],
"_updatedAt": "2021-07-12T18:05:53.257Z",
"numAgents": 4
}
],
"count": 2,
"offset": 0,
"total": 2,
"success": true
}
Last modified 6d ago
Deprecation for cloud services and apps is now extended to November 20, 2023. Rocket.Chat versions receive support for six months after release.