---
title: "Run a rule now"
method: POST
path: "/api/alerting/v2/rules/{id}/_run"
tags: ["alerting-v2"]
---

# Run a rule now

`POST /api/alerting/v2/rules/{id}/_run`

**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/v2/rules/{id}/_run</span></div>

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

[Required authorization] Route required privileges: manage_alerting-v2-rules.

## Path parameters

- `id` string, required

## Headers

- `kbn-xsrf` string, required

## Response `204`

The rule run was triggered successfully.

## Other responses

- `400` — Indicates the rule is disabled and cannot be run.
- `401` — Indicates the request was not authenticated.
- `403` — Indicates the user does not have the required privileges to perform the request.
- `404` — Indicates a rule with the given ID does not exist.
- `409` — Indicates the rule is already running or the run request conflicted.
- `500` — Indicates an unexpected server-side error.
- `503` — Indicates the alerting engine is disabled by the `alerting:v2:enabled` advanced setting.

---

[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/revisions/c36ed1cbdbb5/schema)
