
# 会中修改配置 - UpdateStartedConfConfig
#### 描述
该接口用于修改会议配置，包括会议共享是否锁定，允许呼入范围。
#### 调试
您可以在[API Explorer](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=Meeting&api=UpdateStartedConfConfig)中调试该接口。
#### URI
PUT /v1/mmc/control/conferences/updateStartedConfConfig
#### 请求参数
表1参数说明 
| 参数                         | 是否必须 | 类型      | 位置     | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|:---|:---|:---|:---|:---|
| conferenceID               | 是    | String  | Query  | 会议ID。                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| X-Conference-Authorization | 是    | String  | Header | 会控Token，通过[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)接口获得。                                                                                                                                                                                                                                                                                                                                          |
| lockSharing                | 否    | Integer | Body   | 锁定共享： 0：不锁定 1：锁定                                                                                                                                                                                                                                                                                                                            |
| callInRestriction          | 否    | Integer | Body   | 允许呼入的范围。 - 0：所有用户  - 2：企业内用户  - 3：被邀请用户   |
| isLock                     | 否    | Integer | Body   | 锁定会议 0：解锁。 1：锁定。                                                                                                                                                                                                                                                                                                                             |
| allowUnmuteByOneself       | 否    | Integer | Body   | 是否允许自己解除静音，默认为允许 0：不允许 1：允许                                                                                                                                                                                                                                                                                                             |
| chatPermission             | 否    | Integer | Body   | 会中聊天权限： 1：全员禁止 2：仅允许私聊 3：仅允许公开聊天 4：允许自由聊天                                                                                                                                                                                                  |
| audienceCallInRestriction  | 否    | Integer | Body   | 允许观众呼入的范围，默认为所有人。 0：所有用户 2：企业联系人以及被邀请用户                                                                                                                                                                                                                                                                                                  |
| clientRecMode              | 否    | Integer | Body   | 客户端本地录制权限的范围，默认为仅主持人支持本地录制。 0：仅主持人可录制 1：全部人可录制 2：部分人可录制                                                                                                                                                                                                                                  |
| allowOpenCamera            | 否    | Integer | Body   | 与会人自行开启摄像头 0: 不允许；1: 允许                                                                                                                                                                                                                                                                                                                                                                |
| allowRename                | 否    | Integer | Body   | 是否允许与会人改名 0: 不允许；1: 允许                                                                                                                                                                                                                                                                                                                                                                |
| freeShare                  | 否    | Integer | Body   | 抢共享权限设置 0：仅主持人/联席 1：所有人可抢共享                                                                                                                                                                                                                                                                                                          |
   
#### 状态码
表2状态码说明 
| HTTP状态码 | 描述        |
|:---|:---|
| 200     | 操作成功。     |
| 400     | 参数异常。     |
| 401     | 未鉴权或鉴权失败。 |
| 403     | 权限受限。     |
| 500     | 服务端异常。    |
   
#### 响应参数
无
#### 请求消息示例
```
PUT /v1/mmc/control/conferences/updateStartedConfConfig?conferenceID=900244663
Connection: keep-alive
content-type: application/json
user-agent: WeLink-desktop
Host: api.meeting.huaweicloud.com
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)
{
    "lockSharing": 0
}
```
#### 响应消息示例
```
HTTP/1.1 200 
Date: Wed, 18 Dec 2019 06:20:40 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 39
Connection: keep-alive
Expires: 0
Pragma: No-cache
Cache-Control: no-cache
http_proxy_id: 571b4dfceff545fae29aa14cea761079
Server: api-gateway
X-Request-Id: f78b007ec2dabf1498620131c7bc19e0
```
#### 错误码
当您使用华为云会议服务端API时，如果遇到"MMC"或者"USG"开头的错误码，请参考[华为云API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter/errorcode?product=Meeting)。
#### CURL命令示例
```
curl -k -i -H 'content-type: application/json' -X POST -d '{"lockSharing": 0}' https://api.meeting.huaweicloud.com/v1/mmc/control/conferences/updateStartedConfConfig?conferenceID=900244663
```
