Update avatar of current user
patch
/api/user/avatarUpdate user avatar for the current logged-in user.
Request
Security:
Bearer AuthBody application/json
avatarstring
required
The avatar of current user.
Response
Schema:
application/jsonBody application/json
json
// SUCCESS
{
"code": "0",
"message": "Ok"
}// SUCCESS
{
"code": "0",
"message": "Ok"
}json
// USER_UPDATE_FAILED
{
"code": "106",
"message": "User profile update failed"
}// USER_UPDATE_FAILED
{
"code": "106",
"message": "User profile update failed"
}