---
title: "Patch an alert's enabled state"
method: PATCH
path: "/alerts/{id}"
tags: ["Alerts"]
---

# Patch an alert's enabled state

`PATCH /alerts/{id}`

## Path parameters

- `id` string, required

## Request body

- AlertPatchInput
  - `enabled` boolean, required

## Response `200`

Updated

- AlertResponse
  - `data` Alert, required
    - `id` string
    - `name` string
    - `query` string
    - `interval` string — Check frequency
    - `channels` NotificationChannel[]
      - `type` 'webhook' | 'telegram' | 'slack', required
      - `name` string — Human-readable label for this channel
      - `enabled` boolean — Mute a channel without removing it
      - `config` object, required — Channel-specific configuration (see table below)
    - `enabled` boolean
    - `last_triggered` string, date-time, nullable
    - `last_checked` string, date-time, nullable
    - `status` 'ok' | 'triggered' | 'error' — `ok` = last check didn't fire, `triggered` = last check fired, `error` = query failed

## Other responses

- `404` — Resource not found

## Changes

- **2026-04-19** `9aec01bc7511` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lynxbase/apis/lynxdb-api/changes/alerts/:id/patch.md)

---

[API](https://skmtc.dev/lynxbase/apis/lynxdb-api.md) · [All operations](https://skmtc.dev/lynxbase/apis/lynxdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lynxbase/lynxdb-api/revisions/9aec01bc7511/schema)
