imaging_api.routers.upload ========================== .. py:module:: imaging_api.routers.upload Attributes ---------- .. autoapisummary:: imaging_api.routers.upload.router imaging_api.routers.upload.XNATAuthHeaders Functions --------- .. autoapisummary:: imaging_api.routers.upload.upload_data Module Contents --------------- .. py:data:: router .. py:data:: XNATAuthHeaders .. py:function:: upload_data(net_id: str, request_data: imaging_api.routers.schemas.UploadDataRequest, headers: XNATAuthHeaders) -> list[str] :async: Upload data to XNAT for a given accession ID and central hub project ID :param net_id: The FL net ID. :type net_id: str :param request_data: The request data containing the encrypted central hub project ID and the :type request_data: UploadDataRequest :param accession ID.: :param headers: The XNAT authentication headers. :type headers: XNATAuthHeaders :returns: List of URLs of the uploaded files. :rtype: list[str] :raises HTTPException: If there is an error during the upload process or if the request cannot be processed.