
# 会场选看 - SetParticipantView
#### 描述
该接口用于专业会议终端（如TE系列等）选看其他与会者。
#### 调试
您可以在[API Explorer](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=Meeting&api=SetParticipantView)中调试该接口。
#### URI
PUT /v1/mmc/control/conferences/partView
#### 请求参数
表1参数说明 
| 参数                         | 是否必须 | 类型      | 位置     | 描述                                                                                                                                                                                   |
|:---|:---|:---|:---|:---|
| conferenceID               | 是    | String  | Query  | 会议ID。                                                                                                                                                                                |
| participantID              | 是    | String  | Query  | 专业会议终端的与会者标识。                                                                                                                                                                        |
| X-Conference-Authorization | 是    | String  | Header | 会控Token，通过[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)接口获得。                                                                                         |
| viewType                   | 是    | Integer | Body   | 选看类型。 - 2： 选看会场。   |
| participantID              | 是    | String  | Body   | 被选看的与会者标识。                                                                                                                                                                           |
   
#### 状态码
表2状态码说明 
| HTTP状态码 | 描述        |
|:---|:---|
| 200     | 操作成功。     |
| 400     | 参数异常。     |
| 401     | 未鉴权或鉴权失败。 |
| 403     | 权限受限。     |
| 500     | 服务端异常。    |
   
#### 响应参数
无
#### 请求消息示例
```
PUT /v1/mmc/control/conferences/partView?conferenceID=914083136&participantID=6a1acfe867f211eaa1cd59f41ff47e04
Connection: keep-alive
X-Conference-Authorization:stbaf8fa2ea8a1b0e3ab2e007a85a75f88c55d5f6d5c1912dfb
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)
{
"viewType":2,
        "participantID":"f131536e21ff11eab12735e1cddf6d01"
}
```
#### 响应消息示例
```
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 PUT -H 'X-Conference-Authorization:stb39b3f21898d4972fed86b3f22ac70914a77303def15e126a' -d '{"viewType":2,"participantID":"f131536e21ff11eab12735e1cddf6d01"}' https://api.meeting.huaweicloud.com/v1/mmc/control/conferences/
partView?conferenceID=914083136&participantID=6a1acfe867f211eaa1cd59f41ff47e04
```
