Update Third-Party Account
Important Note
This feature is available in the Business plan. If you haven't upgraded yet, please upgrade before using this feature.
API Overview
- Function: Update avatar and nickname of third-party account
- Request Method: POST
- Request URL: /api/sso/users/{openid}?appid={appid}&access_token={access_token}
Request Parameters
Parameter Name | Type | Location | Description | Example |
---|---|---|---|---|
openid | string | uri | Third-party user identifier used during user creation, used to identify users from the third-party application/platform | c12ba6e8606d11eba20cf64d5fc81bbe |
nickname | string | body | User nickname, maximum length: 64 characters | Li Si |
avatar | string | body | User avatar URL, maximum length: 255 characters | https://wj.gtimg.com/default/default_headimg.png |
Request Example
{
"nickname":"Li Si",
"avatar":"https://wj.gtimg.com/default/default_headimg.png"
}
Response Example
{
"code": "OK",
"error": {
"type": ""
},
"data": {},
"request_id": "1f0f4a33-bfb5-4d28-aa3c-e744ad7c0e4e"
}
Error Codes
error.type Code | Description |
---|---|
update_user_error | Failed to Update User |