Copy files to an order
Copies existing patient file objects to unique storage keys and associates the copies with a different order.
Copies existing patient file objects to unique storage keys and associates the copies with a different order.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Header Parameters
Stable key reused only when retrying the exact same command body
8 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/files/copy-to-order" \ -H "idempotency-key: stringst" \ -H "Content-Type: application/json" \ -d '{ "fileIds": [ "string" ], "orderId": "string" }'{ "files": [ { "id": "string", "partnershipId": "string", "uploadedByOrganizationId": "string", "name": "string", "type": "string", "mimeType": "string", "size": 0, "url": "string", "thumbnailUrl": "string", "orderId": "string", "patientId": "string", "fileRequirementId": "string", "createdAt": "string" } ]}Files
Previous Page
Delete a file DELETE
Archives (soft-deletes) a file: the record and its R2 object are retained, and a retention job physically purges them after the retention window. Only an owner of the owning organization may archive; delivery-proof files and files attached to non-draft orders are immutable.