
# 更新指定业务场景
#### 场景描述
更新指定的业务场景的接口。
#### 接口方法
POST
#### 接口URI
https://域名/apiaccess/CCSQM/rest/ccisqm/v1/scenariomanage/updateScenario，例如域名是service.besclouds.com
#### 请求说明
表1请求头参数 
| 序号 | 名称            | 参数类型   | 是否必选  | 说明                                                                                                                                         |
|:---|:---|:---|:---|:---|
| 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 |
   
表2请求体参数 
| 序号    | 名称               | 参数类型            | 是否必选  | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|:---|:---|:---|:---|:---|
| 1.1   | group_id         | string          | True  | 业务场景标识                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| 1.2   | group_name       | string          | True  | 业务场景名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| 1.3   | description      | string          | False | 业务场景描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| 1.4   | is_enable        | number          | True  | 是否正在被启用（0 代表不启用，1 代表启用）                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| 1.5   | ignore_sensitive | number          | False | 是否计入敏感词分数（0 代表计入，1 代表不计入，不传默认为0）                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| 1.6   | other            | object          | False | 场景的通话过滤条件                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| 1.6.1 | call_end         | number          | False | 通话结束时间，时间戳秒                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| 1.6.2 | call_from        | number          | False | 通话起始时间，时间戳秒                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| 1.7   | rules            | array\[string\] | False | 对话规则，多个规则值以逗号分隔                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| 1.8   | silence_rules    | array\[string\] | False | 静默规则，多个规则值以逗号分隔                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| 1.9   | speed_rules      | array\[string\] | False | 语速规则，多个规则值以逗号分隔                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| 1.10  | interposal_rules | array\[string\] | False | 抢插话规则，多个规则值以逗号分隔                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| 1.11  | interaction_type | integer         | False | 交互类型 - 0和不填表示语音  - 2表示多媒体   |
   
#### 响应说明
- **响应状态码: 200**
表3响应体参数 
| 序号  | 名称         | 参数类型   | 是否必选  | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|:---|:---|:---|:---|:---|
| 1.1 | resultCode | string | False | 返回码 - 0406000 表示成功  - 其他表示失败   |
| 1.2 | resultDesc | string | False | 返回描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
   
- **响应状态码: 400**
  错误的请求：请检查请求路径及参数。
  
- **响应状态码: 401**
  未授权：1. 请确认是否购买了相关服务。 2. 请联系客服人员检查您账号的当前状态。
  
- **响应状态码: 404**
  请求的内容未找到：请检查请求的路径。
  
- **响应状态码: 500**
  业务失败：请依次确认您请求中各参数的取值。
  
 
#### 错误码
无。
#### 报文样例
- 场景描述：更新业务场景 请求头:
  ```
  x-app-key:************************************  
  X-UserID:1611917095665261978  
  Authorization:Bearer ********************************
  ```
  请求参数:
  ```
  {
  "group_name": "OIAP系统",
  "description": "OIAP系统",
  "is_enable": 1,
  "ignore_sensitive": 0,
  "other": {
  "call_from": null,
  "call_end": null
  },
  "Speed_rules": ["919423582684057600"],
  "group_id": "groupid_826b89d9-bec9-4c14-b677-1d86f16c4993"
  }
  ```
  响应参数:
  ```
  {
  "resultCode": "0406000",
  "resultDesc": "更新业务场景成功"
  }
  ```
  
 
