Change Package

PATCH /api/customers/:customerPublicId

Change Package

PATCH /api/customers/:customerPublicId

Changes the customer's package assignment.

This uses the same endpoint as Update Customer — you usually send packageId. Legacy packageType values are still accepted for backward compatibility.

Authentication

BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"

Request Body

{
  "packageId": 12
}

Example 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
  }'

Example 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"
}

Common Errors

  • 400 Invalid Customer identifier
  • 401 Unauthorized
  • 403 Forbidden / Organization ID not found
  • 404 Customer not found
  • 500 Failed to update customer