List roles by role IDs
GET {{baseUrl}}/api/v1/rolesByIds?roleIds=<long>
This API lists details of the roles whose IDs are passed in the API request.
OAuth Scope
Desk.settings.READ
Desk.basic.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
roleIds | string | Comma separated role ids. Maximum allowed count is 50 |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"data":[{"isDefault":true,"shareDataWithPeers":false,"immediateSubRoles":["4000000012420","4000000012417"],"name":"CEO","description":"Agent belongs to this role can access all other user's data.","reportsTo":null,"id":"4000000012414","isVisible":true},{"isDefault":false,"shareDataWithPeers":false,"immediateSubRoles":[],"name":"PortalUser","description":"User belongs to this role are portal users they can access their cases and solutions only","reportsTo":"4000000012414","id":"4000000012420","isVisible":false},{"isDefault":false,"shareDataWithPeers":false,"immediateSubRoles":[],"name":"Personal","description":"Agents belongs to this role can see only unassigned and his/her data","reportsTo":null,"id":"4000000012423","isVisible":false}]}