PATCH
/
mr
/
api
/
v1
/
docs
/
{document_id}
curl --request PATCH \
  --url https://api.eka.care/mr/api/v1/docs/{document_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dt": "lr",
  "ndhm": true,
  "oid": "161847797963700",
  "dd_e": 1614556800,
  "tg": [
    "covid"
  ]
}'

Authorizations

Authorization
string
header
required

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

Path Parameters

document_id
string
required

Document ID to update the document details.

Body

application/json
dt
enum<string> | null
required

The following values are allowed:

  • ps: Prescription
  • lr: Lab Report
  • ot: Other
  • ds: Discharge Summary
  • vc: Vaccine Certificate
  • in: Insurance
  • iv: Invoice
  • sc: Scan
Available options:
ps,
lr,
ot,
ds,
vc,
in,
iv,
sc
ndhm
boolean | null

If true, the record will be linked.

oid
string | null

OID associated with the document.

dd_e
integer | null

Format should be in epoch seconds.

tg
string[] | null

Tags associated with the uploaded documents. The rules for tags are the same as the upload API.