更新用户信息
用于更新用户信 息
请求地址
- API地址(请求URI): /openapi/v1/user/update/info
请求参数
参数名称 | 类型 | 要求 | 描述 |
---|---|---|---|
uid | String | R | User's unique ID |
surname | String | O | Surname of the user |
givenName | String | O | Given name of the user |
phoneNumberPrefix | Integer | R | Phone number prefix, country code, e.g., 86 for China, 852 for Hong Kong, 1 for the USA. Required |
phoneNumber | String | O | Phone number, including the country code (e.g., 852 for Hong Kong) if applicable |
String | O | Email address of the user | |
userTypeTest | Integer | O | Indicates if the account is a test account [0: no, 1: yes] |
grayScale | Integer | O | Indicates if the account is a grayscale account [0: no, 1: yes] |
示例请求
{
"uid": "0a5507e23b684fe9bb7940edecfe34b2",
"surname": "Tomas",
"givenName": "Green",
"phoneNumberPrefix": 852,
"phoneNumber": "89857362",
"email": "helloworld@gmail.com",
"userTypeTest": 0,
"grayScale": 0
}
响应参数
参数名称 | 类型 | 要求 | 描述 |
---|---|---|---|
code | String | R | Response code |
msg | String | R | Response message |
data | - | O | Data returned (if applicable) |
success | Boolean | R | Indicates if the operation was successful |
示例响应
{
"code": "0",
"msg": "ok",
"data": null,
"success": true
}