flip_api.model_services.retrieve_trusts_in_model

Attributes

router

Functions

retrieve_trusts_in_model_endpoint(, db, user_id)

Retrieve trusts associated with a specific model.

Module Contents

flip_api.model_services.retrieve_trusts_in_model.router
flip_api.model_services.retrieve_trusts_in_model.retrieve_trusts_in_model_endpoint(model_id: uuid.UUID = Path(..., title='Model ID'), db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID | None = Depends(verify_token)) None

Retrieve trusts associated with a specific model.

Parameters:
  • model_id (UUID) – The ID of the model to retrieve trusts for.

  • db (Session) – Database session.

  • user_id (UUID | None) – User ID from authentication, if available.

Returns:

None

Raises:

HTTPException – If the user does not have access to the model, if the model does not exist, or if there is a database error.