---
title: "Update escalation rule"
method: PATCH
path: "/api/escalation-rules/{id}"
tags: ["Escalation Rules"]
---

# Update escalation rule

`PATCH /api/escalation-rules/{id}`

## Request

- Base URL: `https://dregs.com`
- URL: `https://dregs.com/api/escalation-rules/{id}`
- Auth: HTTP bearer

Updates an escalation rule

## Path parameters

- `id` integer, required

## Request body

- V1UpdateEscalationRuleRequest
  - `name` string
  - `conditions` RuleCondition[]
    - `condition` string
    - `category` string
    - `threshold` integer
    - `badge` string
    - `seconds` integer
  - `severity` 'INFO' | 'WARNING' | 'CRITICAL'
  - `channels` string[]
  - `openAfterSeconds` integer
  - `closeAfterSeconds` integer
  - `effectiveAt` string, date-time
  - `enabled` boolean

## Response `200`

Escalation rule updated

## Other responses

- `404`: Escalation rule not found

---

[API](https://skmtc.dev/dregs/apis/dregs-api.md) · [All operations](https://skmtc.dev/dregs/apis/dregs-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dregs/apis/dregs-api/revisions/ea71f8c1eed4?raw)
