Update Doctor¶
Update an existing doctor's profile by their ID.
Endpoint¶
Path Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
doctorId |
integer | Yes | Unique identifier of the doctor |
Request Body¶
All fields are optional. Only the fields provided are updated.
| Parameter | Type | Required | Description |
|---|---|---|---|
master_specialization |
string | No | Primary specialization |
first_name |
string | No | First name |
middle_name |
string | No | Middle name |
last_name |
string | No | Last name |
email |
string | No | Email address |
mobile |
string | No | Mobile phone number |
sex |
string | No | MALE, FEMALE, or OTHER |
date_of_birth |
string (date) | No | Date of birth (YYYY-MM-DD) |
about |
string | No | Bio / description |
qualifications |
array | No | List of qualifications |
services |
array | No | List of services offered |
specialities |
array | No | List of specialties |
experiences |
array | No | Work experience entries |
languages |
array | No | Languages spoken |
registration_number |
string | No | Professional registration number |
registration_body |
string | No | Registration authority |
awards |
string | No | Awards and recognitions |
npi |
string | No | National Provider Identifier |
color_code |
string | No | Hex color code for UI |
clinics |
array | No | Clinic associations |
verified |
boolean | No | Whether the profile is verified |
Request¶
curl --location '{base_url}/v1/doctor/485195' \
--header 'Authorization: Bearer JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"about": "Updated bio for this doctor.",
"npi": "9876543210",
"qualifications": ["PT", "DPT", "OCS"]
}'
Response¶
Success Response¶
Code: 200 OK
{
"code": 2000,
"data": {
"doctor_id": 485195,
"first_name": "Matt",
"last_name": "Swift",
"about": "Updated bio for this doctor.",
"npi": "9876543210",
"qualifications": ["PT", "DPT", "OCS"]
},
"message": "Success"
}
Error Response¶
Code: 400 Bad Request