update_user_info
Brief Description
- Update user's profile picture and nickname. (This interface is deprecated. Please use
update_user_info_ex
first.)
Request Method
post
Request URL
http://x.x.x.x:10002/user/update_user_info
Header
Header Name | Example Value | Optional | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | operationID for global link tracking |
token | eyJhbxxxx3Xs | Required | string | Administrator token |
Request Parameter Example
{
"userInfo": {
"userID": "11111112",
"nickname": "alantestuid3",
"faceURL": "1111111",
"ex":"ex"
}
}
Field Name | Optional | Type | Description |
---|---|---|---|
userInfo | Required | object | User information |
userInfo.userID | Required | string | User ID |
userInfo.nickname | Optional | string | User's nickname |
userInfo.faceURL | Optional | string | User's profile picture URL |
userInfo.ex | Optional | string | Extension field |
Successful Response Example
{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}
Explanation for Successful Response Parameters
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, 0 means success |
errMsg | string | Brief error message, empty if no error |
errDlt | errDlt | Detailed error information, empty if no error |
data | object | General data object, specific structure below |
Failed Response Example
{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}
Explanation for Failed Response Parameters
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, refer to the global error code document |
errMsg | string | Brief error message |
errDlt | errDlt | Detailed error information |