flip_api.model_services.edit_model ================================== .. py:module:: flip_api.model_services.edit_model Attributes ---------- .. autoapisummary:: flip_api.model_services.edit_model.router Functions --------- .. autoapisummary:: flip_api.model_services.edit_model.edit_model_endpoint Module Contents --------------- .. py:data:: router .. py:function:: edit_model_endpoint(model_id: uuid.UUID, model_details: flip_api.domain.interfaces.model.IModelDetails, db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) -> None Edit a specific model. :param model_id: The ID of the model to edit. :type model_id: UUID :param model_details: The new details for the model. :type model_details: IModelDetails :param db: Database session. :type db: Session :param user_id: User ID from authentication. :type user_id: UUID :returns: None :raises HTTPException: If the user is not allowed, if the model does not exist, if the model is already deleted, if the model status does not allow editing, or if there is a database error.