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

# Create Rule

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

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/escalation-rules/spaces/{space_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

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.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
