---
title: "Update an alert rule (org-scoped)."
method: POST
path: "/v1/op/alerts.update_rule"
tags: ["kernel-ops"]
---

# Update an alert rule (org-scoped).

`POST /v1/op/alerts.update_rule`

## Headers

- `x-api-key` string, nullable

## Request body

- UpdateAlertRuleInput
  - `rule_id` string, required
  - `name` string, nullable
  - `description` string, nullable
  - `collection_id` string, nullable
  - `event_types` string[], nullable
  - `expression` string, nullable
  - `comparison` string, nullable
  - `threshold` number, nullable
  - `threshold_upper` number, nullable
  - `asset_key` string, nullable
  - `band_mapping` object, nullable
  - `notification_channels` string[], nullable
  - `active` boolean, nullable
  - `cooldown_minutes` integer, nullable

## Response `200`

Successful Response

- AlertRuleOutput
  - `alert_rule` object, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
