Skip to content

Update Document

Request

Update a document.

Security
bearer
Path
documentIdstringrequired
Headers
ProjectIdstring, (uuid)required
Example:e6b01018-a333-4732-917e-fe38e91b0fdf
Bodyapplication/jsonrequired
documentNamestring

Display name for this document

documentLocationstring
documentDatestring, (yyyy-mm-dd)
Example:"2023-05-26"
curl -i -X PUT \
  'https://partner.xcures.com/api/v1/patient-registry/document/{documentId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'ProjectId: e6b01018-a333-4732-917e-fe38e91b0fdf' \
  -d '{
    "documentName": "string",
    "documentLocation": "string",
    "documentDate": "2023-05-26"
  }'

Responses

Bodyapplication/json
idstringrequired
createdstring, (date-time)required
updatedstring, (date-time)required
subjectIdstringrequired
fileNamestringrequired
sourcestring
Enum:"fhir""ccda""box""userUpload""patientFhir"
sourceIdstring
documentNamestring

Display name for this document

documentLocationstring
documentDatestring, (date-time)
contentTypestring
informationTypesArray of strings

Document Classifications (an Array of strings)

Response
{ "id": "string", "created": "2019-08-24T14:15:22Z", "updated": "2019-08-24T14:15:22Z", "subjectId": "string", "source": "fhir", "sourceId": "string", "documentName": "string", "documentLocation": "string", "documentDate": "2019-08-24T14:15:22Z", "fileName": "string", "contentType": "string", "informationTypes": [ "string" ] }