flip_api.user_services.update_user ================================== .. py:module:: flip_api.user_services.update_user Attributes ---------- .. autoapisummary:: flip_api.user_services.update_user.router Functions --------- .. autoapisummary:: flip_api.user_services.update_user.update_user_endpoint Module Contents --------------- .. py:data:: router .. py:function:: 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 :param user_id: The ID of the user to update :type user_id: UUID :param disabled: The disabled status to set for the user :type disabled: Disabled :param request: The FastAPI request object :type request: Request :param db: The database session :type db: Session :param token_id: The ID of the token used for authentication :type token_id: UUID :returns: The updated disabled status of the user :rtype: Disabled :raises HTTPException: If the user does not have permission to update a user, if the user is not found, or if there is :raises an error updating the user in Cognito or the database.: