cURL
curl --request POST \ --url https://demands-api.tavrn.ai/v1/jobs/{packageId}/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form type=medical-record
{ "status": "uploading", "message": "File is being uploaded.", "file": { "key": "<string>", "name": "<string>", "size": 123, "type": "medical-record" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The package ID returned when the job was created.
The file to upload.
Type of the uploaded file.
medical-record
case-info
sample-demand
File uploaded successfully
"uploading"
"File is being uploaded."
Show child attributes