Profile
Profil aktualisieren
Ein bestehendes Patientenprofil aktualisieren
PATCH
/
api
/
v1
/
profiles
/
{id}
curl --request PATCH \
--url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"phone": "+4917612345678",
"language": "en"
}'
{
"id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
"handle": null,
"first_name": "Maria",
"last_name": "Schmidt",
"email": "maria.schmidt@example.com",
"phone": "+4917612345678",
"sex": 2,
"date_of_birth": "1985-03-22",
"height": 168,
"weight": 65,
"language": "en",
"transactional_emails_enabled": true,
"created_at": "2026-04-01T09:14:32Z",
"updated_at": "2026-04-01T14:22:11Z"
}
{
"error": "phone: Phone must be in E.164 format (e.g., +14155552671)"
}
{
"error": "Profile not found"
}
Aktualisiere ein oder mehrere Felder eines bestehenden Patientenprofils. Du musst nur die Felder angeben, die du ändern möchtest – alle Body-Parameter sind optional.
Erfordert den Scope
create_user.
Anfrage
Pfadparameter
Body-Parameter
Neuer Wert für das biologische Geschlecht nach ISO/IEC 5218 (
1 = männlich, 2 = weiblich). 0 (unbekannt) gibt 400 zurück.Neues Geburtsdatum im Format
YYYY-MM-DD. Muss in der Vergangenheit und nicht vor 1900 liegen.
Das errechnete Alter muss zwischen 16 und 100 liegen.Neue bevorzugte Sprache:
en, bg, ca, cs, da, de, el, es, et, fi, fr, ga, hr, hu, is, it, lb, lt, lv, mt, nl, no, pl, pt, ro, ru, sk, sl, sr, sv, tr oder uk.Ob dieses Profil transaktionale (programmatische) E-Mails erhalten soll – Terminbestätigungen,
Benachrichtigungen über vorliegende Ergebnisse usw. Unabhängig vom Marketing-Opt-in. Weglassen,
um den aktuellen Wert beizubehalten.
Antwort
Bei Erfolg gibt die API200 OK mit dem vollständigen aktualisierten Profil zurück.
Biologisches Geschlecht nach ISO/IEC 5218 (
0 = unbekannt, 1 = männlich, 2 = weiblich). Kann null sein.Ob dieses Profil transaktionale (programmatische) E-Mails erhält.
null, wenn noch nie gesetzt.Fehlerantworten
| Status | Beschreibung |
|---|---|
400 | Validierungsfehler – ein oder mehrere Felder haben die Validierung nicht bestanden. |
403 | Zugriff verweigert – dein API-Schlüssel hat keinen Zugriff auf diesen Vorgang oder das Profil liegt außerhalb deines Zugriffskontexts. |
404 | Profil nicht gefunden. |
500 | Interner Serverfehler. |
curl --request PATCH \
--url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"phone": "+4917612345678",
"language": "en"
}'
{
"id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
"handle": null,
"first_name": "Maria",
"last_name": "Schmidt",
"email": "maria.schmidt@example.com",
"phone": "+4917612345678",
"sex": 2,
"date_of_birth": "1985-03-22",
"height": 168,
"weight": 65,
"language": "en",
"transactional_emails_enabled": true,
"created_at": "2026-04-01T09:14:32Z",
"updated_at": "2026-04-01T14:22:11Z"
}
{
"error": "phone: Phone must be in E.164 format (e.g., +14155552671)"
}
{
"error": "Profile not found"
}
⌘I
curl --request PATCH \
--url https://anivahealth.com/api/v1/profiles/a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"phone": "+4917612345678",
"language": "en"
}'
{
"id": "a3f1c2d4-8b7e-4f2a-9c1d-2e3f4a5b6c7d",
"handle": null,
"first_name": "Maria",
"last_name": "Schmidt",
"email": "maria.schmidt@example.com",
"phone": "+4917612345678",
"sex": 2,
"date_of_birth": "1985-03-22",
"height": 168,
"weight": 65,
"language": "en",
"transactional_emails_enabled": true,
"created_at": "2026-04-01T09:14:32Z",
"updated_at": "2026-04-01T14:22:11Z"
}
{
"error": "phone: Phone must be in E.164 format (e.g., +14155552671)"
}
{
"error": "Profile not found"
}