modifyCustomer
Patient-Stammdaten aktualisieren (PATCH-Semantik)
Nur die gesendeten Felder werden geändert. patid ist Pflicht. Adress-Updates via Sub-Object 'address'.
HTTP Request
https://dev.vitabyte.ch/v1/system/modifyCustomer
Request Parameters
PATCH-Semantik: nur mitgesendete Felder werden geschrieben, alles andere bleibt unverändert.
⚠ countrycode komplett klein — countryCode wird still verworfen.language als ISO 639-1; muss im Sprache-Dropdown existieren.
Jede Änderung landet zusätzlich im Log.
| Parameter | Pflicht | Typ | Beispiel / Default |
|---|---|---|---|
patid
|
required | integer |
789
|
title
|
optional | string | |
firstname
|
optional | string | |
lastname
|
optional | string | |
gender
Enthält der Wert ein f, wird weiblich gespeichert. |
optional | string | |
dob
|
optional | string | |
street
|
optional | string | |
zip
|
optional | string | |
city
|
optional | string |
Bern
|
country
|
optional | string | |
countrycode
Nur komplett kleingeschrieben als Feldname wirksam. |
optional | string |
CH
|
tel
|
optional | string | |
fax
|
optional | string | |
mobile
|
optional | string |
+41 79 111 11 11
|
mail
|
optional | string |
new@example.com
|
ahv
|
optional | string | |
language
ISO 639-1. |
optional |
string enum: de | fr | it | en
|
fr
|
deleted
1 markiert den Patienten als gelöscht. |
optional |
integer enum: 0 | 1
|
Response Parameters
Envelope-Abweichung: kein result. Fehler: Please provid a valid patid (fehlende patid, Tippfehler im Backend) bzw. Invalid patid — beides mit HTTP 200.
Demo
Parameter und Beispiele stammen aus der internen API-Collection; die OpenAPI-Spec weicht für diesen Endpoint davon ab.
POST
https://dev.vitabyte.ch/v1/system/modifyCustomer
{
"patid": 789,
"mail": "new@example.com",
"mobile": "+41 79 111 11 11",
"city": "Bern",
"countrycode": "CH",
"language": "fr"
}
{
"status": true,
"msg": "Customer modified"
}