post
https://api.precursor.com.au/api/v1/patients//documents
Step 1 of the three-step upload flow. Declares the file you are about to upload and
returns a presigned URL to send the bytes to.
After this call:
- HTTP
PUTthe raw file bytes touploadUrl, with aContent-Typeheader of
exactlyrequiredContentType— the URL is signed for that content type and S3
rejects anything else. Send no Precursor auth headers on the PUT. - Call
POST /api/v1/patients/{patientId}/documents/{documentId}/completeto
validate and file the document. Nothing is visible to anyone until complete
succeeds.
The upload URL expires at uploadExpiresAt (about an hour). Accepted formats and the
100 MB cap are listed in the API overview; the declared fileName extension decides
the required content type. category, when sent, must be one of Pathology,
Imaging, Immunisation or Other (case-insensitive; defaults to Other); date,
when sent, must be yyyy-MM-dd. Returns 403 documents_locked while the patient's
vault is locked, and 404 when the patient has no booking with you.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…