Reassign files between orders
Moves files from one order to another, updating order item and file requirement associations. S3 objects stay in place — only DB records are updated.
Moves files from one order to another, updating order item and file requirement associations. S3 objects stay in place — only DB records are updated.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/files/reassign" \ -H "Content-Type: application/json" \ -d '{ "fromOrderId": "string", "toOrderId": "string", "assignments": [ { "fileId": "string" } ] }'{ "success": true, "reassigned": 0}Get presigned upload URL POST
Generates a presigned PUT URL so the client can upload directly to storage. No file DB row is created until the client calls finalize after a successful upload. Optionally returns a second signed PUT URL for a thumbnail. Valid for 5 minutes.
Upload a file POST
Uploads a small file directly via multipart form data. Large files must use the presigned upload/finalize flow. Optionally attach to a patient, order, or order item. A thumbnail can be uploaded alongside the main file.