flip_api.user_services.update_user
Attributes
Functions
|
Update user details with disabled status |
Module Contents
- flip_api.user_services.update_user.router
- flip_api.user_services.update_user.update_user_endpoint(user_id: uuid.UUID, user_update: flip_api.domain.schemas.users.UpdateUser, request: fastapi.Request, db: sqlmodel.Session = Depends(get_session), token_id: uuid.UUID = Depends(verify_token)) flip_api.domain.schemas.users.UpdateUserResponse
Update user details with disabled status
Requires CAN_MANAGE_USERS permission
- Parameters:
user_id (UUID) – The ID of the user to update
user_update (UpdateUser) – The user fields to update
request (Request) – The FastAPI request object
db (Session) – The database session
token_id (UUID) – The ID of the token used for authentication
- Returns:
The updated user fields
- Return type:
- Raises:
HTTPException – If the user does not have permission to update a user, if the user is not found, or if there is
an error updating the user in Cognito or the database. –