flip_api.trusts_services.start_project_imaging_creation ======================================================= .. py:module:: flip_api.trusts_services.start_project_imaging_creation Attributes ---------- .. autoapisummary:: flip_api.trusts_services.start_project_imaging_creation.router Functions --------- .. autoapisummary:: flip_api.trusts_services.start_project_imaging_creation.start_project_imaging_creation Module Contents --------------- .. py:data:: router .. py:function:: 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] :async: 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. :param request: FastAPI request object. :type request: Request :param project_id: ID of the project. :type project_id: UUID :param trust: Trust information. :type trust: ITrust :param db: Database session. :type db: Session :param user_id: User ID from the request context. :type user_id: UUID :returns: Success message indicating the task has been queued. :rtype: dict[str, str]