curl --request POST \
  --url https://api.splose.com/v1/patients/{id}/file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>'
{
  "id": 1,
  "name": "patientFile.pdf",
  "patientId": 1
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200
application/json

Successfully uploaded file

The response is of type object.