Skip to main content
PATCH
/
orgs
/
{org_id}
/
governance
/
escalation-rules
/
{rule_id}
Update an escalation rule
curl --request PATCH \
  --url https://api.mnemom.ai/v1/orgs/{org_id}/governance/escalation-rules/{rule_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "predicate": {
    "pattern_type": "<string>",
    "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "threshold_count": 2,
    "window_minutes": 2
  },
  "destination_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "enabled": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "org_id": "<string>",
  "name": "<string>",
  "predicate": {
    "pattern_type": "<string>",
    "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "threshold_count": 2,
    "window_minutes": 2
  },
  "destination_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "enabled": true,
  "fire_count": 1,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "last_fired_at": "2023-11-07T05:31:56Z",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

org_id
string
required

Organization identifier (e.g. org-abc12345)

rule_id
string<uuid>
required

Body

application/json
name
string
predicate
object
destination_ids
string<uuid>[]

Allowed empty when enabled is false (Tier 4 §4.4 default rules)

enabled
boolean

Response

Escalation rule.

id
string<uuid>
required
org_id
string
required
name
string
required
predicate
object
required
destination_ids
string<uuid>[]
required
Minimum array length: 1
enabled
boolean
required
fire_count
integer
required
Required range: x >= 0
created_at
string<date-time>
required
updated_at
string<date-time>
required
last_fired_at
string<date-time> | null
created_by
string<uuid> | null