更新时间:2019-11-20
企业管理员通过该接口修改企业用户。
请求方法 |
PUT |
---|---|
请求地址 |
/rest/usg/datacenter/v1/corp/member/{account} |
传输协议 |
HTTPS |
参数 |
是否必须 |
类型 |
位置 |
描述 |
---|---|---|---|---|
Authorization |
是 |
String |
Header |
授权令牌。将执行鉴权响应的accessToken 进行Base64转码操作。 样例:Basic Base64(accessToken) |
account |
是 |
String |
URL |
企业用户帐号。 帐号只能包含大小写字母、数字、_、-、.、@符号,不能为纯数字和@后面带.号。 长度:0-64位。 |
name |
是 |
String |
Body |
名称。 长度:1-64位。 |
phone |
否 |
String |
Body |
手机号,必须加上国家码,例如中国大陆手机+86xxxxxxxxxxx。当填写手机号时 “country”参数必填。 手机号只允许输入纯数字。 说明:手机号或者邮箱至少填写一个。 长度:0-32位。 |
country |
否 |
String |
Body |
默认值:chinaPR。 长度:0-255位。 |
|
否 |
String |
Body |
邮箱。 长度:0-255位。 |
vmrId |
否 |
String |
Body |
虚拟会议室ID,若不携带则后台默认生成。 长度:0-32位。 |
deptCode |
否 |
String |
Body |
部门编号,若不携带则默认根部门。 默认值:1 长度:0-32位。 |
signature |
否 |
String |
Body |
签名。 长度:0-512位。 |
status |
否 |
Integer |
Body |
用户状态。
|
参数 |
类型 |
描述 |
---|---|---|
returnCode |
String |
业务返回码。 |
returnMessage |
String |
返回描述。 |
achievementTime |
String |
响应产生时间。 |
requestId |
String |
请求唯一标识。 |
PUT /rest/usg/datacenter/v1/corp/member/test001 Connection: keep-alive Content-Type: application/json Authorization: Basic UnhsbTBjNUdOWU9jZlUwbWQxcU82Y1QwZndOSDhOblNz Content-Length: 173 Host: api.meeting.huaweicloud.com User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191) { "country": "chinaPR", "deptCode": "1", "email": "test010@huawei.com", "name": "modify001", "phone": "+86136********", "signature":"", "status":0 }
HTTP/1.1 200 Date: Fri, 12 Apr 2019 09:41:02 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 143 Connection: keep-alive Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Server: api-gateway X-Request-Id: 26701eb8f982b175b70776316d46e33e { "returnCode": "000000000", "returnMessage": "Success", "achievementTime": "2019-04-12 09:39:50.805", "requestId": "26701eb8f982b175b70776316d46e33e" }
curl -k -i -H 'content-type: application/json' -X PUT -H 'Authorization: Basic VUVwVU82SWFISU0ySWlKaEdoRllRUXk0MUZnbk00Mkpk'' -d '{"country": "chinaPR","deptCode": "1","email": "test010@huawei.com","name": "modify001","phone": "+86136********","signature":"","status":0}' https://api.meeting.huaweicloud.com/rest/usg/datacenter/v1/corp/member/test001