PUT
/v2/user/avatarUpload an avatar
Uploads an avatar for the authenticated user's account. Send the image as the avatar field in a multipart form request; the response contains the updated user profile.
Multipart form data containing the avatar file.
avatarstringrequired
The image file to use as the authenticated user's avatar.
200Returns the updated user profile, including the avatar details, account ID, username, and account status fields.
accountTypestringrequired
avatarobjectoptional
deletablebooleanrequired
domainstringoptional
emailAwaitingVerificationstringoptional
globalServerRolestringrequired
idintegerrequired
mfaEnabledbooleanrequired
namestringoptional
needsSuperJwtTokenbooleanrequired
thirdPartyAuthTypestringoptional
usernamestringrequired
400Returned when the `avatar` field is missing or the upload request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to change the profile.
codestringrequired
paramsarray<object>optional
404Returned when the user profile cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the avatar field is missing or the upload request is invalid. A 401 is returned when the request is unauthenticated, a 403 when the authenticated user is not permitted to change the profile, and a 404 when the user profile cannot be found. Include the file in the avatar multipart form field.