Search Call Dispositions
Search call dispositions.
Request URL
GET {base_url}/{api_path}/call_disposition/search?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| search_value | No | String | The search keyword, which is fuzzy-matched against the name and description of call dispositions. |
| page | No | Integer | Define which page is displayed. |
| page_size | No | Integer | Define how many records per page. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| results | Array<Disposition_Code> | The list of call dispositions matching the search criteria. |
| total_number | Integer | The total number of call dispositions matching the search criteria. |
- Disposition_Code
-
Parameter Type Description id Integer The unique ID of the call disposition. name String The name of the call disposition. description String The description of the call disposition. queue_scope Integer The scope of queues to which the call disposition is available. 0: The call disposition is available to all call queues.1: The call disposition is available only to specified call queues.
queue String The ID(s) of the queues that can use the call disposition.
Example
Request example
GET /openapi/v1.0/call_disposition/search?search_value=API&page=1&page_size=2&access_token=lweYFZuwsgSrhFOKC3Z0XmDRXfbPohi6 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"total_number": 1,
"results": [
{
"id": 3,
"name": "API Test Disposition",
"description": "",
"queue_scope": 1,
"queue": "1"
}
]
}