添加话务标签
添加话务标签。
请求 URL
POST {base_url}/{api_path}/call_disposition/create?access_token={access_token}
请求参数
| 参数 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| name | 是 | String | 话务标签的名称。 |
| description | 否 | String | 话务标签的描述。 |
| queue_scope | 否 | Integer | 话务标签的适用队列范围。 取值范围:
|
| queue | 否 | String | 队列的唯一 ID。 注:
|
响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | Integer | 返回错误码。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息。
|
| errmsg | String | 返回信息。
|
| id | Integer | 话务标签的唯一 ID。 |
示例
请求示例
POST /openapi/v1.0/call_disposition/create?access_token=lweYFZuwsgSrhFOKC3Z0XmDRXfbPohi6 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"name": "API Test Disposition",
"description": "test",
"queue_scope": 1,
"queue": "1"
}
响应示例
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"id": 3
}