PUT
/v2/userUpdate authenticated user information
Updates profile information for the authenticated user. Provide email and name, and include currentPassword when needed to authorize the change; callbackUrl can be used to set the link target in verification email. The response contains the updated user profile.
Profile information to update. Include the required email and name; callbackUrl and currentPassword are optional.
callbackUrlstringoptional
Callback url for link sent in e-mail. This may be omitted, when server has set frontEndUrl in properties.
currentPasswordstringoptional
The user's current password. Maximum 50 characters.
emailstringrequired
The user's email address. Must contain at least one character.
namestringrequired
The user's name. Must contain at least one character.
200Returns the updated user profile, including account type, deletable status, global server role, numeric user ID, MFA status, super-token requirement, and username; optional fields may include avatar, domain, email awaiting verification, name, and third-party authentication type.
accountTypestringrequired
avatarobjectoptional
deletablebooleanrequired
domainstringoptional
emailAwaitingVerificationstringoptional
globalServerRolestringrequired
idintegerrequired
mfaEnabledbooleanrequired
namestringoptional
needsSuperJwtTokenbooleanrequired
thirdPartyAuthTypestringoptional
usernamestringrequired
400Returned when required profile fields are missing or a value fails validation.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to update the profile.
codestringrequired
paramsarray<object>optional
404Returned when the requested resource is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid; email and name are required, and each must contain at least one character. currentPassword must not exceed 50 characters. A 401 is returned when the request has no valid authentication, a 403 when the authenticated user is not permitted to update the profile, and a 404 when the requested resource is not found.