|
| 1 | +--- |
| 2 | + |
| 3 | +sidebar_position: 9 |
| 4 | +title: update_user_info_ex |
| 5 | +hide_title: true |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +<center> |
| 10 | + |
| 11 | +## Update User Info Ex |
| 12 | + |
| 13 | +</center> |
| 14 | + |
| 15 | +### Brief Description |
| 16 | +- Modify user's avatar and nickname. |
| 17 | + |
| 18 | +### Request Method |
| 19 | +- `POST` |
| 20 | + |
| 21 | +### Request URL |
| 22 | +- `http://x.x.x.x:10002/user/update_user_info_ex` |
| 23 | + |
| 24 | +### Header |
| 25 | +| Header Name | Example Value | Required | Type | Description | |
| 26 | +|:------------|:--------------|:---------|:-----|:------------| |
| 27 | +|operationID |1646445464564 |Required |string|operationID for global traceability| |
| 28 | +|token |eyJhbxxxx3Xs |Required |string|Admin token| |
| 29 | + |
| 30 | +### Request Parameters Example |
| 31 | + |
| 32 | +```json |
| 33 | +{ |
| 34 | + "userInfo": { |
| 35 | + "userID": "2", |
| 36 | + "nickname": "alantestuid3", |
| 37 | + "faceURL": "1111111", |
| 38 | + "ex": "123" |
| 39 | + } |
| 40 | +} |
| 41 | +``` |
| 42 | + |
| 43 | +| Field Name | Required | Type | Description | |
| 44 | +|:-----------------|:---------|:-------|:--------------| |
| 45 | +|userInfo | Required | object | User information | |
| 46 | +|userInfo.userID | Required | string | User ID | |
| 47 | +|userInfo.nickname | Optional | string | User nickname | |
| 48 | +|userInfo.faceURL | Optional | string | User avatar | |
| 49 | +|ex | Optional | string | Extension field | |
| 50 | + |
| 51 | +### Success Response Example |
| 52 | + |
| 53 | +```json |
| 54 | +{ |
| 55 | + "errCode": 0, |
| 56 | + "errMsg": "", |
| 57 | + "errDlt": "" |
| 58 | +} |
| 59 | +``` |
| 60 | + |
| 61 | +### Success Response Parameters Explanation |
| 62 | + |
| 63 | +| Parameter Name | Type | Description | |
| 64 | +|:---------------|:-------|:------------| |
| 65 | +|errCode | int | Error code, 0 indicates success | |
| 66 | +|errMsg | string | Brief error message, empty if no error | |
| 67 | +|errDlt | string | Detailed error message, empty if no error | |
| 68 | +|data | object | Generic data object, specific structure below | |
| 69 | + |
| 70 | +### Failure Response Example |
| 71 | + |
| 72 | +```json |
| 73 | +{ |
| 74 | + "errCode": 1004, |
| 75 | + "errMsg": "RecordNotFoundError", |
| 76 | + "errDlt": ": [1004]RecordNotFoundError" |
| 77 | +} |
| 78 | +``` |
| 79 | + |
| 80 | +### Failure Response Parameters Explanation |
| 81 | + |
| 82 | +| Parameter Name | Type | Description | |
| 83 | +|:---------------|:-------|:------------| |
| 84 | +|errCode | int | Error code, refer to the global error code documentation | |
| 85 | +|errMsg | string | Brief error message | |
| 86 | +|errDlt | string | Detailed error message | |
0 commit comments