Get Role List
This interface is used to obtain the role list information under the current company
Request Method
GET /agent_roles
Request Parameters
None
Response Data
Attribute Name | Type | Description |
---|---|---|
code | Integer | Execution result code, 1000 means success |
agent_roles | Array | See details below |
Structure of agent_roles
Parameter Name | Type | Description |
---|---|---|
id | Integer | Role ID |
name | String | Role name |
description | String | Role description |
Example
Request
curl https://demo.udesk.cn/open_api_v1/agent_roles?email=admin@udesk.cn×tamp=1494474404&sign=6892f1b794071c260e1b1eac15df588fc919c9e86eb742affaa742ad6c03cb52&nonce=2d931510-d99f-494a-8c67-87feb05e1594&sign_version=v2 \
-X GET \
-H 'content-type: appliacation/json' \
Response
{
"code": 1000,
"agent_roles": [
{"id": 1, "name": "Role 1", "description": ""},
{"id": 2, "name": "Role 2", "description": ""},
{"id": 3, "name": "Role 3", "description": ""}
]