Skip to main content

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 NameTypeLocationDescriptionExample
openidstringuriThird-party user identifier used during user creation, used to identify users from the third-party application/platformc12ba6e8606d11eba20cf64d5fc81bbe
nicknamestringbodyUser nickname, maximum length: 64 charactersLi Si
avatarstringbodyUser avatar URL, maximum length: 255 charactershttps://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 CodeDescription
update_user_errorFailed to Update User