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
| Name | Type | Description |
|---|---|---|
| session | SessionDep | The database session dependency used for performing persistence operations. |
| user_in | UserUpdateMe | The data transfer object containing the fields to be updated for the current user. |
| current_user | CurrentUser | The currently authenticated user retrieved from the security context. |
Request Body
| Field | Type | Description |
|---|---|---|
string | The new email address for the user, checked for uniqueness across the system. | |
| full_name | string | The updated full name of the user. |
| password | string | The new password to be set for the user account. |
Response
| Status | Description |
|---|---|
| 200 | The user profile was successfully updated. Returns UserPublic. |
| 409 | Returned when the provided email address is already associated with another account. Returns null. |