---
title: "Create an alert rule for the caller's organization."
method: POST
path: "/v1/alerts/create_rule"
tags: ["resource-facade"]
---

# Create an alert rule for the caller's organization.

`POST /v1/alerts/create_rule`

## Headers

- `x-api-key` string, nullable

## Request body

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

## 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)
