Kunden aktualisieren
PATCH /api/customers/:customerPublicId
Kunden aktualisieren
PATCH /api/customers/:customerPublicId
Aktualisiert Kundendetails.
Authentifizierung
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
Anfrage (Request Body)
Alle Felder sind optional. Nicht gesendete Felder behalten ihren aktuellen Wert.
{
"name": "Neuer Name",
"email": "neu@example.com",
"status": "active",
"packageType": "business", // konfigurierter packageType oder Display-Name der Organisation
"notificationEmail": "alerts@customer-a.de",
"notificationPhoneNumber": "+491701234567",
"monthlyReportsEnabled": true,
"customFields": {
"internalReference": "KD-999"
}
}
Hinweise:
packageTypekann den konfigurierten Paket-Key oder den Display-Namen des Pakets enthalten. Bekannte Alias-Schreibweisen wieaquisition_testwerden automatisch normalisiert.
Beispiel-Request
curl -X PATCH "$BASE_URL/api/customers/6bfec6f6-245a-47ce-843b-157d97d56f88" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Customer A GmbH (Updated)",
"monthlyReportsEnabled": true
}'
Beispiel-Response
{
"id": 101,
"publicId": "6bfec6f6-245a-47ce-843b-157d97d56f88",
"organizationId": 1,
"name": "Customer A GmbH (Updated)",
"email": "contact@customer-a.de",
"notificationPhoneNumber": "+491701234567",
"notificationEmail": "alerts@customer-a.de",
"packageId": 3,
"status": "active",
"monthlyReportsEnabled": true,
"customFields": {
"internalReference": "KD-999"
},
"notificationChannels": null,
"notificationTargets": null,
"updatedAt": "2026-02-26T19:37:00.000Z"
}
Häufige Fehler
400Invalid Customer identifier401Unauthorized403Forbidden / Organization ID not found404Customer not found500Failed to update customer