Update a patient
curl --request PATCH \
--url https://api.healos.ai/ext-api/v1/patients/{patientId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Maria Santos",
"first_name": "Maria",
"last_name": "Santos",
"date_of_birth": "1990-03-15",
"gender": "female",
"phone": "+14155550123",
"email": "maria@example.com",
"address": "<unknown>",
"mrn": "MRN-12345",
"pronouns": "she/her",
"notes": "History of generalized anxiety disorder. Currently on sertraline 50mg.",
"consent": true,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Maria Santos',
first_name: 'Maria',
last_name: 'Santos',
date_of_birth: '1990-03-15',
gender: 'female',
phone: '+14155550123',
email: 'maria@example.com',
address: '<unknown>',
mrn: 'MRN-12345',
pronouns: 'she/her',
notes: 'History of generalized anxiety disorder. Currently on sertraline 50mg.',
consent: true,
provider_id: 'aaaaaaa1-0000-0000-0000-000000000001'
})
};
fetch('https://api.healos.ai/ext-api/v1/patients/{patientId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.healos.ai/ext-api/v1/patients/{patientId}"
payload = {
"name": "Maria Santos",
"first_name": "Maria",
"last_name": "Santos",
"date_of_birth": "1990-03-15",
"gender": "female",
"phone": "+14155550123",
"email": "maria@example.com",
"address": "<unknown>",
"mrn": "MRN-12345",
"pronouns": "she/her",
"notes": "History of generalized anxiety disorder. Currently on sertraline 50mg.",
"consent": True,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "481926357104938271",
"name": "Maria Santos",
"first_name": "Maria",
"last_name": "Santos",
"date_of_birth": "1990-03-15",
"gender": "female",
"phone": "+14155550123",
"email": "maria@example.com",
"mrn": "MRN-12345",
"created_at": "2026-03-15T09:30:00.000Z",
"pronouns": "she/her",
"notes": "History of generalized anxiety disorder. Currently on sertraline 50mg.",
"consent": true,
"external_id": "PARTNER-12345",
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"address": "<unknown>"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Rate limit exceeded. Please retry after the window resets.",
"code": "daily_cap_reached",
"reset_at": "2026-10-28T00:00:00.000Z"
}Patients
Update a patient
PATCH
/
patients
/
{patientId}
Update a patient
curl --request PATCH \
--url https://api.healos.ai/ext-api/v1/patients/{patientId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Maria Santos",
"first_name": "Maria",
"last_name": "Santos",
"date_of_birth": "1990-03-15",
"gender": "female",
"phone": "+14155550123",
"email": "maria@example.com",
"address": "<unknown>",
"mrn": "MRN-12345",
"pronouns": "she/her",
"notes": "History of generalized anxiety disorder. Currently on sertraline 50mg.",
"consent": true,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Maria Santos',
first_name: 'Maria',
last_name: 'Santos',
date_of_birth: '1990-03-15',
gender: 'female',
phone: '+14155550123',
email: 'maria@example.com',
address: '<unknown>',
mrn: 'MRN-12345',
pronouns: 'she/her',
notes: 'History of generalized anxiety disorder. Currently on sertraline 50mg.',
consent: true,
provider_id: 'aaaaaaa1-0000-0000-0000-000000000001'
})
};
fetch('https://api.healos.ai/ext-api/v1/patients/{patientId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.healos.ai/ext-api/v1/patients/{patientId}"
payload = {
"name": "Maria Santos",
"first_name": "Maria",
"last_name": "Santos",
"date_of_birth": "1990-03-15",
"gender": "female",
"phone": "+14155550123",
"email": "maria@example.com",
"address": "<unknown>",
"mrn": "MRN-12345",
"pronouns": "she/her",
"notes": "History of generalized anxiety disorder. Currently on sertraline 50mg.",
"consent": True,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "481926357104938271",
"name": "Maria Santos",
"first_name": "Maria",
"last_name": "Santos",
"date_of_birth": "1990-03-15",
"gender": "female",
"phone": "+14155550123",
"email": "maria@example.com",
"mrn": "MRN-12345",
"created_at": "2026-03-15T09:30:00.000Z",
"pronouns": "she/her",
"notes": "History of generalized anxiety disorder. Currently on sertraline 50mg.",
"consent": true,
"external_id": "PARTNER-12345",
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"address": "<unknown>"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Rate limit exceeded. Please retry after the window resets.",
"code": "daily_cap_reached",
"reset_at": "2026-10-28T00:00:00.000Z"
}| Requirement | Detail |
|---|---|
| Scope | patients:write |
| Rate limit | About 60 requests per minute per API key (shared by all endpoints; approximate) |
| Cost | Free |
Safety
- Writes data: Yes. Updates the fields you send.
external_idis ignored on update. - Safe to retry: Yes. Sending the same body again gives the same result.
- Contacts an outside system: None
- Dry run: Not available.
Body
application/json
Was this page helpful?

