Skip to content

Create a Document

Request

Create a new document for a subject and get a signed URL to upload the document.

Security
bearer
Headers
ProjectIdstring, (uuid)required
Example:e6b01018-a333-4732-917e-fe38e91b0fdf
Bodyapplication/jsonrequired
subjectIdstringrequired
fileNamestringrequired
contentTypestring, (MIME)required
Example:"application/xml"
documentNamestring

Display name for this document

documentDatestring, (date-time)
informationTypesArray of strings

Document Classifications (an Array of strings)

curl -i -X POST \
  https://partner.xcures.com/api/v1/patient-registry/document \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'ProjectId: e6b01018-a333-4732-917e-fe38e91b0fdf' \
  -d '{
    "subjectId": "string",
    "documentName": "string",
    "documentDate": "2019-08-24T14:15:22Z",
    "fileName": "string",
    "informationTypes": [
      "string"
    ],
    "contentType": "application/xml"
  }'

Responses

Bodyapplication/json
documentIdstringrequired
signedS3Urlstringrequired
Response
{ "documentId": "string", "signedS3Url": "string" }