Skip to main content

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

NameTypeDescription
user_iduuid.UUIDThe unique identifier of the user account to be updated.
user_inUserUpdateThe data object containing the fields to be updated for the user.
sessionSessionDepThe database session dependency used for persistence operations.

Returns

TypeDescription
UserPublicThe updated user record containing public profile information.