flip_api.trusts_services.start_project_imaging_creation

Attributes

router

Functions

start_project_imaging_creation(, trust, db, user_id, str])

Queues imaging project creation as a task for the trust.

Module Contents

flip_api.trusts_services.start_project_imaging_creation.router
async flip_api.trusts_services.start_project_imaging_creation.start_project_imaging_creation(request: fastapi.Request, project_id: uuid.UUID = Path(..., description='ID of the project'), trust: flip_api.domain.interfaces.trust.ITrust = Body(..., description='Trust information'), db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) dict[str, str]

Queues imaging project creation as a task for the trust.

Instead of making a direct HTTP call to the trust, this creates a TrustTask that the trust will pick up during its next polling cycle.

Parameters:
  • request (Request) – FastAPI request object.

  • project_id (UUID) – ID of the project.

  • trust (ITrust) – Trust information.

  • db (Session) – Database session.

  • user_id (UUID) – User ID from the request context.

Returns:

Success message indicating the task has been queued.

Return type:

dict[str, str]