Paket wechseln
PATCH /api/customers/:customerPublicId
Paket wechseln
PATCH /api/customers/:customerPublicId
Ändert die Paketzuordnung des Kunden.
Technisch ist das derselbe Endpoint wie Kunden aktualisieren — normalerweise sendest du hier packageId.
Legacy-packageType-Werte werden aus Kompatibilitätsgründen weiterhin akzeptiert.
Authentifizierung
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
Anfrage (Request Body)
{
"packageId": 12
}
Beispiel-Request
curl -X PATCH "$BASE_URL/api/customers/6bfec6f6-245a-47ce-843b-157d97d56f88" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"packageId": 12
}'
Beispiel-Response
{
"id": 101,
"publicId": "6bfec6f6-245a-47ce-843b-157d97d56f88",
"organizationId": 1,
"name": "Customer A GmbH",
"email": "contact@customer-a.de",
"notificationPhoneNumber": null,
"notificationEmail": null,
"packageId": 12,
"status": "active",
"monthlyReportsEnabled": true,
"customFields": {},
"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