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, disabled: flip_api.domain.schemas.users.Disabled, request: fastapi.Request, db: sqlmodel.Session = Depends(get_session), token_id: uuid.UUID = Depends(verify_token)) flip_api.domain.schemas.users.Disabled
Update user details with disabled status
Requires CAN_MANAGE_USERS permission
- Parameters:
user_id (UUID) – The ID of the user to update
disabled (Disabled) – The disabled status to set for the user
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 disabled status of the user
- 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. –