Skip to main content

User Update Info

is used update user info

Request address

  • API Address (requestURI) : /openapi/v1/user/update/info

Request parameters

Parameter nameTypeRequirementDescription
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]

Sample request

{
"uid": "0a5507e23b684fe9bb7940edecfe34b2",
"surname": "Tomas",
"givenName": "Green",
"phoneNumberPrefix": 852,
"phoneNumber": "89857362",
"email": "helloworld@gmail.com",
"userTypeTest": 0,
"grayScale": 0
}

Response parameters

Parameter nameTypeRequirementDescription
codeStringRResponse code
msgStringRResponse message
data-OData returned (if applicable)
successBooleanRIndicates if the operation was successful

Sample response

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