---
title: "Disable action policies in bulk by ID"
method: POST
path: "/api/alerting/v2/action_policies/_bulk_disable"
tags: ["alerting-v2"]
---

# Disable action policies in bulk by ID

`POST /api/alerting/v2/action_policies/_bulk_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/v2/action_policies/_bulk_disable</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-action-policies.

## Headers

- `kbn-xsrf` string, required

## Request body

- KibanaHTTPAPIsAlertingBulkByIdsRequest
  - `ids` string[], required — Explicit list of IDs to operate on.

## Response `200`

Returns the result of the bulk disable operation.

- KibanaHTTPAPIsAlertingBulkOperationResponse — Result of an executed bulk operation.
  - `affected_count` integer, required — Number of resources the operation successfully touched.
  - `errors` object[], required — Errors encountered during the operation.
    - `error` object, required
      - `code` string, required — A stable, machine-readable error code (e.g., "RULE_NOT_FOUND", "INVALID_SCHEDULE"). Safe for clients to branch on.
      - `details` object — Optional structured context (e.g., validation field errors, conflict resource IDs).
      - `message` string, required — A human-friendly explanation of the error. Subject to change without notice. Do not parse or rely on its content.
    - `id` string, required — The identifier of the resource that failed.

## Other responses

- `400` — Indicates an invalid schema or parameters.
- `401` — Indicates the request was not authenticated.
- `403` — Indicates the user does not have the required privileges to perform the request.
- `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)
