搜索话务标签
搜索话务标签。
请求 URL
GET {base_url}/{api_path}/call_disposition/search?access_token={access_token}
请求参数
| 参数 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| search_value | 否 | String | 搜索关键词。系统会根据关键词模糊匹配话务标签的名称和描述。 |
| page | 否 | Integer | 定义显示第几个页面。 |
| page_size | 否 | Integer | 定义每页显示几项查询结果。 |
响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | Integer | 返回错误码。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息。
|
| errmsg | String | 返回信息。
|
| results | Array<Disposition_Code> | 符合搜索条件的话务标签列表。 |
| total_number | Integer | 符合搜索条件的话务标签总数。 |
- Disposition_Code
-
参数 类型 说明 id Integer 话务标签的唯一 ID。 name String 话务标签的名称。 description String 话务标签的描述。 queue_scope Integer 话务标签的适用队列范围。 0:所有队列均可使用此话务标签。1:仅指定的队列可使用此话务标签。
queue String 可使用此话务标签的队列 ID。
示例
请求示例
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
响应示例
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"
}
]
}