---
title: "Bulk Update"
method: PATCH
path: "/api/v1/alert-rules/bulk/"
tags: ["alert-rules-bulk"]
---

# Bulk Update

`PATCH /api/v1/alert-rules/bulk/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/alert-rules/bulk/`
- Auth: none declared

Update multiple alert rules at once.

Allowed updates: is_active, cooldown_minutes, max_alerts_per_day

Transaction guarantee: All-or-nothing. If any rule fails validation
(not found, not authorized), the entire operation is rolled back.

## Headers

- `Authorization` string

## Request body

- BulkUpdateRequest: Request to update multiple rules.
  - `rule_ids` string[], required
  - `updates` object, required: Fields to update: is_active, cooldown_minutes, max_alerts_per_day

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
