cURL
curl --request POST \ --url https://api.decodahealth.com/notes/{note_id}/documents/upload \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --header 'TENANT: <tenant>' \ --form file='@example-file' \ --form 'title=<string>' \ --form doc_type=OTHER
{ "id": "<string>", "patientId": "<string>", "filePath": "<string>", "fileType": "<string>", "title": "<string>", "summary": "<string>", "docType": "LAB", "signatureUrl": "<string>", "createdDate": "2023-11-07T05:31:56Z", "noteIds": [], "sourceNoteId": "<string>" }
Upload a new document and link it to a note.
The tenant you are making this request on behalf of
Your api key
LAB
PHARMACY
IMAGE
REPORT
OTHER
CONSENT
NOTE_UPLOAD
Successful Response