PATCH
/
profiles
/
v1
/
patient
/
{oid}
Update patient profile details
curl --request PATCH \
  --url https://api.eka.care/profiles/v1/patient/{oid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'client-id: <client-id>' \
  --data '{
  "dob": "2000-01-02",
  "gen": "M",
  "mobile": "+916000000000",
  "fn": "eka",
  "mn": "eka",
  "ln": "user",
  "fln": "eka user",
  "bloodgroup": "A+",
  "s": "Dr",
  "email": "testuser@eka.care",
  "abha": "xyz@abdm",
  "username": "UH0001",
  "extras": {
    "dummyKey": "Dummy Value"
  }
}'
{
  "message": "Profile updated successfully"
}

Authorizations

Authorization
string
header
required

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

Headers

client-id
string
required
Example:

"EC_1431"

Path Parameters

oid
string
required
Example:

18661861868168

Body

application/json
dob
string<date>
Example:

"2000-01-02"

gen
enum<string>

Gender

Available options:
M,
F,
O
Example:

"M"

mobile
string

Mobile number of the patient

Example:

"+916000000000"

fn
string

First name (will be converted and stored in lowercase)

Example:

"eka"

mn
string

Middle name (will be converted and stored in lowercase)

Example:

"eka"

ln
string

Last name (will be converted and stored in lowercase)

Example:

"user"

fln
string

Full name (will be converted and stored in lowercase)

Example:

"eka user"

bloodgroup
enum<string>

Blood group of the patient

Available options:
A+,
A-,
B+,
B-,
AB+,
AB-,
O+,
O-
Example:

"A+"

s
string

Salutation (will be converted and stored in lowercase)

Example:

"Dr"

email
string<email>

Email address of the patient (will be converted and stored in lowercase)

Example:

"testuser@eka.care"

abha
string

ABHA address of the patient

Example:

"xyz@abdm"

username
string

Unique UHID| partner id | username for the patient. Note: username must be unique within a workspace. Please refrain from sending it unless it has changed.

Example:

"UH0001"

extras
object

Additional arbitrary data as a JSON object

Example:
{ "dummyKey": "Dummy Value" }

Response

Update Patient profile

message
string
Example:

"Profile updated successfully"