Skip to main content
POST
/
v1
/
jobs
/
{packageId}
/
upload
Upload a file for a job
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

packageId
string
required

The package ID returned when the job was created.

Body

multipart/form-data
file
file
required

The file to upload.

type
enum<string>
required

Type of the uploaded file.

Available options:
medical-record,
case-info,
sample-demand

Response

File uploaded successfully

status
string
Example:

"uploading"

message
string
Example:

"File is being uploaded."

file
object