---
title: "Enable or disable alert"
method: PATCH
path: "/api/v2/{org_id}/alerts/{alert_id}/enable"
tags: ["Alerts"]
---

# Enable or disable alert

`PATCH /api/v2/{org_id}/alerts/{alert_id}/enable`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/v2/{org_id}/alerts/{alert_id}/enable`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/v2/:org_id/alerts/:alert_id/enable/patch.ts> (a function with typed inputs; its response is checked against the schema)

Toggles the active status of an alert to enable or disable its monitoring and notification functionality. When disabled, the alert will stop evaluating conditions and sending notifications until re-enabled.

## Path parameters

- `org_id` string, required
- `alert_id` string, required

## Query parameters

- `value` boolean, required
- `folder` string

## Response `200`

Success

- EnableAlertResponseBody: HTTP response body for `EnableAlert` endpoint.
  - `enabled` boolean, required

## Other responses

- `404`: NotFound
- `500`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
