Get
Deprecated/api/v1/livechat/departments.by-unit/{unitid}
Gives departments included in a specific unit ID. This endpoint has been renamed to Get Departments by Unit ID as from Rocket.Chat 5.0
Header parameters
X-Auth-Token
stringRequired
The authToken
of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired
The userId
of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Path parameters
unitid
stringRequired
The unit ID.
Examplesriw2wmP2Zz2pPrre
Query parameters
start
stringRequired
The start date.
Example2020-09-10T23:59:22.345Z
end
stringRequired
The end date.
Example2020-09-09T00:11:22.345Z
Responses
200
OK
object
departments
Array of object
object
_id
string
enabled
boolean
name
string
description
string
showOnRegistration
boolean
showOnOfflineForm
boolean
requestTagBeforeClosingChat
boolean
email
string
maxNumberSimultaneousChat
string
waitingQueueMessage
string
type
string
numAgents
integer
_updatedAt
string
ancestors
Array of string
string
chatClosingTags
Array of object
object
abandonedRoomsCloseCustomMessage
string
departmentsAllowedToForward
Array of string
string
offlineMessageChannelName
string
visitorInactivityTimeoutInSeconds
string
parentId
string
count
integer
offset
integer
total
integer
success
boolean