
# 校验手机和邮箱对应的验证码 - CheckVeriCodeForUpdateUserInfo
#### 描述
企业用户通过该接口校验手机和邮箱对应的验证码，一分钟内记录尝试次数不得超过5次。
#### 调试
您可以在[API Explorer](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=Meeting&api=CheckVeriCodeForUpdateUserInfo)中调试该接口。
#### URI
POST /v1/usg/dcs/member/verification-code/verify
#### 请求参数
表1参数说明 
| 参数               | 是否必须 | 类型     | 位置     | 描述                                                                                                                                                                                                                                  |
|:---|:---|:---|:---|:---|
| X-Access-Token   | 是    | String | Header | 授权令牌。获取"[执行App ID鉴权](https://support.huaweicloud.com/api-meeting/meeting_21_0311.html)"响应的accessToken                                                                                                                               |
| X-Request-Id     | 否    | String | Header | 请求requestId，用来标识一路请求，用于问题跟踪定位，建议使用UUID，若不携带，则后台自动生成。                                                                                                                                                                                |
| Accept-Language  | 否    | String | Header | 语言参数，默认为中文zh-CN，英文为en-US。                                                                                                                                                                                                           |
| contact          | 是    | String | Body   | 后台自动识别是手机号还是邮箱。 如果为手机号，必须加上国家码，例如中国大陆手机为"+86xxxxxxxxxxx"，当填写手机号时 "country"参数必填。 maxLength：255 minLength：1  |
| country          | 否    | String | Body   | [手机号所属的国家](https://support.huaweicloud.com/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)。 默认值：chinaPR。 长度：0-255。 |
| verificationCode | 否    | String | Body   | 验证码，在校验的场景时需要携带。                                                                                                                                                                                                                    |
   
#### 状态码
表2状态码说明 
| HTTP状态码 | 描述        |
|:---|:---|
| 200     | 操作成功。     |
| 400     | 参数异常。     |
| 401     | 未鉴权或鉴权失败。 |
| 403     | 权限受限。     |
| 500     | 服务端异常     |
   
#### 响应参数
无
#### 请求消息示例
```
POST /v1/usg/dcs/member/verification-code/verify
Connection: keep-alive
X-Access-Token: stb3te1tKXh5mDfICbiSOP0GOoqwkWEDgfB9
Content-Type: application/json
Content-Length: 68
Host: api.meeting.huaweicloud.com 
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)
{
    "contact": "+86136********",
    "country": "chinaPR",
    "verificationCode": "753927"
}
```
#### 响应消息示例
```
HTTP/1.1 200 
Date: Wed, 18 Dec 2019 06:20:40 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 143
Connection: keep-alive
Pragma: No-cache
Cache-Control: no-cache
Server: api-gateway
X-Request-Id: eed03de09b96dec5643adbbb55acf674
```
#### 错误码
当您使用华为云会议服务端API时，如果遇到"MMC"或者"USG"开头的错误码，请参考[华为云API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter/errorcode?product=Meeting)。
#### CURL命令示例
```
curl -k -i -H 'content-type: application/json' -X POST -H 'X-Access-Token: stb3te1tKXh5mDfICbiSOP0GOoqwkWEDgfB9' -d '{"contact": "+86136********","country": "chinaPR","verificationCode": "753927"}' https://api.meeting.huaweicloud.com/v1/usg/dcs/member/verification-code/verify
```
