---
title: "Create Rule"
method: POST
path: "/escalation-rules/spaces/{space_id}"
tags: ["escalation-rules"]
---

# Create Rule

`POST /escalation-rules/spaces/{space_id}`

Create a new escalation rule for a space.

## Path parameters

- `space_id` string, uuid, required

## Request body

- EscalationRuleCreate
  - `name` string, required
  - `description` string, nullable
  - `rule_type` string, required
  - `conditions` object
  - `priority` string
  - `auto_escalate` boolean
  - `notify_only` boolean
  - `sort_order` integer
  - `is_active` boolean

## Response `201`

Successful Response

- EscalationRuleResponse
  - `id` string, required
  - `space_id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `is_active` boolean, required
  - `rule_type` string, required
  - `conditions` object, required
  - `priority` string, required
  - `auto_escalate` boolean, required
  - `notify_only` boolean, required
  - `sort_order` integer, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
