update_user
Update a user.
def update_user(
user_id: uuid.UUID,
user_in: UserUpdate,
session: SessionDep
) - > UserPublic
Updates the profile information for an existing user in the system. This endpoint is restricted to superusers and allows for partial updates of user attributes.
Parameters
| Name | Type | Description |
|---|---|---|
| user_id | uuid.UUID | The unique identifier of the user account to be updated. |
| user_in | UserUpdate | The data object containing the fields to be updated for the user. |
| session | SessionDep | The database session dependency used for persistence operations. |
Returns
| Type | Description |
|---|---|
UserPublic | The updated user record containing public profile information. |