Update user avatar
Updates the avatar for the user.
PUT
/api/2/user/avatarAuthorization
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
or
AuthorizationBearer token · headerrequiredPersonal Access Token — Administration > Profile > Personal Access Tokens
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
Query parameters
usernamestringusername
Request body
requiredapplication/jsonNew avatar details
idstringownerstringselectedbooleanResponses
200
Returns updated avatar
idstringownerstringselectedboolean400
Returned if the avatar details are invalid
401
Returned if the user is not authenticated.
403
Returned if the currently authenticated user does not have permission to update avatar
404
Returned if user from parameter does not exist
500
Returned if an error occurs while updating the avatar