Skip to main content
PUT
Upsert Scenario Policy

Body

application/json

One row of the §9.1 action ladder.

enabled_by is deliberately NOT a field: escalation must be attributable to the authenticated operator, and a client-supplied name would let it be forged. The handler stamps it from request.state.user, and migration 194's CHECK constraint refuses an auto_arm row without it — belt and braces, because the database must hold the line for a psql session too.

template_id
string
required
symbol_scope
string
default:*
action
string
default:log
gate_min_n
integer
default:30
gate_expectancy_floor_r
number
default:0
Required range: x >= 0
gate_recency_days
integer
default:120
Required range: 1 <= x <= 1825

Response

Successful Response

The response is of type Response Upsert Scenario Policy Api Graph V1 Pattern Events Scenario Policies Put · object.