---
title: "Disable a rule"
method: POST
path: "/api/alerting/rule/{id}/_disable"
tags: ["alerting"]
---

# Disable a rule

`POST /api/alerting/rule/{id}/_disable`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/alerting/rule/{id}/_disable</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Path parameters

- `id` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- object, nullable
  - `untrack` boolean — Defines whether this rule's alerts should be untracked.

## Response `204`

Indicates a successful call.

## Other responses

- `400` — Indicates an invalid schema.
- `403` — Indicates that this call is forbidden.
- `404` — Indicates a rule with the given ID does not exist.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
