---
title: "Create an Alert Configuration Rule"
method: POST
path: "/api/v1/anomaly-detection/rule"
tags: ["Anomaly Detection"]
---

# Create an Alert Configuration Rule

`POST /api/v1/anomaly-detection/rule`

## Request

- Base URL: `https://api.umbrellacost.io`
- URL: `https://api.umbrellacost.io/api/v1/anomaly-detection/rule`
- Auth: none declared. Required headers: `Authorization`, `apikey`

The call is used to create an anomaly-detection rule

## Headers

- `Authorization` string, required
- `apikey` string, required

## Request body

- object
  - `uuid` string, required: Unique identifier of the rule to update
  - `ruleName` string, required: The rule name
  - `direction` string, required: UP or DOWN
  - `minAmountChange` string, required
  - `minPercentChange` string, required
  - `email` string, required: Email of the alert recipient
  - `filters` object: The rule include and exclude filters
  - `recipients` object[]: Array of channel recipients
  - `minAmountDailyChange` string: Optional value for daily change threshold

## Response `200`

---

[API](https://skmtc.dev/umbrellacost/apis/advanced-services.md) - [All operations](https://skmtc.dev/umbrellacost/apis/advanced-services/llms.txt) - [OpenAPI document](https://skmtc.dev/umbrellacost/apis/advanced-services/revisions/fde38bef0656?raw)
