DELETE
/v2/user/avatarDelete the authenticated user's avatar
Deletes the avatar associated with the authenticated user's account. Use this operation when you want to remove the account image; the response contains the updated user profile.
200Returns the updated user profile, including account type, avatar details when present, account ID, username, and account status fields.
accountTypestringrequired
avatarobjectoptional
deletablebooleanrequired
domainstringoptional
emailAwaitingVerificationstringoptional
globalServerRolestringrequired
idintegerrequired
mfaEnabledbooleanrequired
namestringoptional
needsSuperJwtTokenbooleanrequired
thirdPartyAuthTypestringoptional
usernamestringrequired
400Returned when the avatar cannot be removed.
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 cannot be removed. 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. The operation applies to the authenticated user's account.