`POST /v1/admin/properties/{id}/alert-rules`
POST/v1/admin/properties/:id/alert-rules
Alert rule.create.
Create a per-property custom alert rule (stat README §7). The request is validated against the known rule types, comparators, and metric vocabulary (400 on unknown); the property must exist in the target env (404). The INSERT runs in one explicit transaction with the RLS context set on the same connection (stat DESIGN §5).
Request
Responses
- 200
- 400
- 403
- 404
Rule created
Unknown rule_type, comparator, or metric_name; invalid threshold/window
Missing stat:admin scope
Property not found in env