Skip to main content

PATCH /utils/me

Update own user.

Updates the profile information of the currently authenticated user, including email and password validation.

Endpoint

PATCH /utils/me

Parameters

NameTypeDescription
sessionSessionDepThe database session dependency used for performing persistence operations.
user_inUserUpdateMeThe data transfer object containing the fields to be updated for the current user.
current_userCurrentUserThe currently authenticated user retrieved from the security context.

Request Body

FieldTypeDescription
emailstringThe new email address for the user, checked for uniqueness across the system.
full_namestringThe updated full name of the user.
passwordstringThe new password to be set for the user account.

Response

StatusDescription
200The user profile was successfully updated. Returns UserPublic.
409Returned when the provided email address is already associated with another account. Returns null.