跳到主要内容

更新用户信息

用于更新用户信息

请求地址

  • API地址(请求URI): /openapi/v1/user/update/info

请求参数

参数名称类型要求描述
uidStringRUser's unique ID
surnameStringOSurname of the user
givenNameStringOGiven name of the user
phoneNumberPrefixIntegerRPhone number prefix, country code, e.g., 86 for China, 852 for Hong Kong, 1 for the USA. Required
phoneNumberStringOPhone number, including the country code (e.g., 852 for Hong Kong) if applicable
emailStringOEmail address of the user
userTypeTestIntegerOIndicates if the account is a test account [0: no, 1: yes]
grayScaleIntegerOIndicates 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
}

响应参数

参数名称类型要求描述
codeStringRResponse code
msgStringRResponse message
data-OData returned (if applicable)
successBooleanRIndicates if the operation was successful

示例响应

{
"code": "0",
"msg": "ok",
"data": null,
"success": true
}