修改语速规则
场景描述
修改语速规则。
接口方法
POST
接口URI
https://域名/apiaccess/CCSQM/rest/ccisqm/v1/speedrule/updateSpeedRule,例如域名是service.besclouds.com
请求说明
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1 | Content-Type | string | False | 固定填 application/json; charset=UTF-8。 |
2 | x-app-key | string | False | appKey标识 |
3 | Authorization | string | True | 鉴权字段,内容格式为: Bearer +tokenByAKSK接口的返回值中AccessToken(Bearer后有空格) |
4 | x-UserId | string | False | 操作员标识 可在登录后,进入员工管理页面,查看接口返回的userId |
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1.1 | setting | object | True | 基本信息 |
1.1.1 | name | string | True | 语速规则名称 |
1.1.2 | score | number | True | 违规扣分数0-100(包含0和100) |
1.1.3 | min | number | True | 语速最小限制1-220(每分钟的字数) |
1.1.4 | max | number | True | 语速最大限制1-2147483647(每分钟的字数) |
1.1.5 | other | object | False | 触发条件(满足开始结束时间时触发) |
1.1.5.1 | call_from | number | False | 通话发生开始时间(毫秒数) |
1.1.5.2 | call_end | number | False | 通话发生结束时间(毫秒数) |
1.1.6 | speed_id | string | True | 语速规则ID |
1.2 | exception | object | True | 例外设置信息 |
1.2.1 | under | object | True | 语速低于最小限制时,客户有说出以下句子 |
1.2.1.1 | customer | array | False | 客户说的句子id |
1.2.2 | over | object | True | 语速大于最高限制时,客户有说出以下句子 |
1.2.2.1 | customer | array | False | 客户说的句子id |
响应说明
- 响应状态码: 200
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1.1 | resultCode | string | False | 返回码,0405000表示成功,其他表示失败 |
1.2 | resultDesc | string | False | 返回的描述信息 |
- 响应状态码: 400
错误的请求:请检查请求路径及参数。
- 响应状态码: 401
未授权:1. 请确认是否购买了相关服务。 2. 请联系客服人员检查您账号的当前状态。
- 响应状态码: 404
请求的内容未找到:请检查请求的路径。
- 响应状态码: 500
业务失败:请依次确认您请求中各参数的取值。
错误码
无。
报文样例
- 场景描述:修改语速规则
x-app-key:************************************ X-UserID:1611917095665261978 Authorization:Bearer ******************************** x-TenantSpaceId:202101124979
请求参数:
{ "exception": { "under": { "customer": ["11064"] }, "over": { "customer": ["11093"] } }, "setting": { "score": 3, "other": { "call_end": null, "call_from": null }, "min": 90, "max": 100, "name": "toofast", "speed_id": "849706874868600832" } }响应参数:
{ "resultCode": "0405000", "resultDesc": "操作成功" }

