---
title: "Create Alert Rule"
method: POST
path: "/organization/alert_rules"
tags: ["organization"]
---

# Create Alert Rule

`POST /organization/alert_rules`

## Cookies

- `access_token` string, nullable

## Request body

- AdminAlertRuleCreate
  - `user_uuid` string, nullable
  - `workflow_type` string, nullable
  - `credit_threshold` union, required
    - number
    - string
  - `notify_all_admins` boolean

## Response `200`

Successful Response

- AdminAlertRule
  - `uuid` string, required
  - `workflow_type` string, nullable, required
  - `credit_threshold` string, required
  - `notify_all_admins` boolean, required
  - `created_by_username` string, required
  - `target_username` string, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rowansci/apis/eyrie.md) · [All operations](https://skmtc.dev/rowansci/apis/eyrie/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rowansci/eyrie/revisions/f786577eede6/schema)
