Get department details by department IDs
GET {{baseUrl}}/api/v1/departmentsByIds?departmentIds=:department_ids?departmentIds=<long>
This API fetches the details of the departments whose IDs are passed in the API request.
OAuth Scope
Desk.settings.READ
Desk.basic.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
departmentIds | string | Comma-separated array of department IDs. Maximum number of IDs allowed is 50. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"data":[{"isAssignToTeamEnabled":true,"chatStatus":"AVAILABLE","isDefault":true,"hasLogo":true,"isVisibleInCustomerPortal":true,"isEnabled":true,"name":"Zylker","creatorId":"1892000000042001","description":"Zylker Inc. is a multinational technology company that designs, develops, and sells consumer electronics.","createdTime":"2019-07-26T13:11:02.000Z","id":"1892000000082069","nameInCustomerPortal":"ZylCares"},{"isAssignToTeamEnabled":true,"chatStatus":"DISABLED","isDefault":false,"hasLogo":true,"isVisibleInCustomerPortal":true,"isEnabled":true,"name":"zPad","creatorId":"1892000000042001","description":"zPad is the most advanced tablet that brings you the never-experienced-before processing power.","createdTime":"2018-07-06T13:11:12.000Z","id":"1892000000082085","nameInCustomerPortal":"zPad"}]}