flip_api.private_services.invoke_model_status_update ==================================================== .. py:module:: flip_api.private_services.invoke_model_status_update Attributes ---------- .. autoapisummary:: flip_api.private_services.invoke_model_status_update.router Functions --------- .. autoapisummary:: flip_api.private_services.invoke_model_status_update.invoke_model_status_update_endpoint Module Contents --------------- .. py:data:: router .. py:function:: invoke_model_status_update_endpoint(model_id: uuid.UUID, model_status: flip_api.domain.schemas.status.ModelStatus = Path(..., title='New model status'), db: sqlmodel.Session = Depends(get_session), _: None = Depends(authenticate_internal_service)) -> dict[str, str] Update a model's status. Restricted to internal FL services via internal service key authentication. This endpoint is internal-only: it accepts requests from the fl-server on the Central Hub (authenticated via INTERNAL_SERVICE_KEY_HEADER). :param model_id: The ID of the model whose status is to be updated. :type model_id: UUID :param model_status: The new status to set for the model. :type model_status: ModelStatus :param db: The database session, provided by dependency injection. :type db: Session :returns: A dictionary containing the result of the status update operation. :rtype: dict[str, str] :raises HTTPException: If the model does not exist or there is a database/server error.