POST
/
dr
/
v1
/
patient
curl --request POST \
  --url https://api.eka.care/dr/v1/patient \
  --header 'Content-Type: application/json' \
  --header 'auth: <auth>' \
  --data '{
  "dob": "1987-01-06",
  "designation": "Mr.",
  "first_name": "Test",
  "partner_patient_id": "6742984",
  "middle_name": "",
  "last_name": "Patient",
  "mobile": "+919999999999",
  "gender": "M",
  "address": {
    "city": "Bangalore",
    "line1": "ABC",
    "line2": "XYZ",
    "pincode": 560049,
    "state": "Karnataka",
    "country": "India"
  },
  "partner_meta": {
    "key1": "value1"
  }
}'
{
  "patient_id": "123456789"
}

Headers

auth
string
required

The auth token of business_id. It is used to authenticate the business. The token can be fetched from the auth api.

Body

application/json
Request body for adding a patient to the directory

The body is of type object.

Response

201
application/json
OK

The response is of type object.