Uptimeify Docs
Escalation

Update Escalation Config

Updates the escalation config. The :id parameter is the organization ID. If no config exists, one is upserted.

PATCH /api/escalation-config/:id

Request Body (all optional)

FieldTypeDescription
webhookUrlstring|nullWebhook URL. Set to null to deactivate the webhook channel.
webhookMethodstringHTTP method: POST, PUT, or PATCH
webhookHeadersobject|stringJSON headers object
webhookBodyTemplatestringJSON body template with {{variables}}
webhookTimeoutintegerTimeout in seconds
webhookRetryAttemptsintegerNumber of retries
webhookRetryDelayintegerSeconds between retries
expectedStatusCodesstringComma-separated expected status codes
isActivebooleanEnable or disable the webhook
defaultEmailstringSide-effect: creates/updates an org-level email notification channel
defaultPhoneNumberstringSide-effect: creates/updates an org-level SMS notification channel

Example (cURL)

curl -X PATCH "$BASE_URL/api/escalation-config/1" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "webhookUrl": "https://example.com/webhook",
    "webhookMethod": "POST",
    "webhookHeaders": { "Content-Type": "application/json" },
    "webhookTimeout": 30,
    "webhookRetryAttempts": 3,
    "isActive": true,
    "defaultEmail": "alerts@example.com"
  }'

Common errors

  • 401 Unauthorized when not authenticated
  • 403 Forbidden with insufficient permissions

Response

Returns the updated escalation config object. See Error Codes for error responses.

On this page