Update Insight Alert Rule
Apply the sent fields. Changing what the rule measures (metric, scope, comparator, threshold or window) or disabling it resolves its live incident with reason rule_changed, so no incident outlives the policy that opened it.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
rule_id*Rule Id
Format
uuidQuery Parameters
org_id*Org Id
Format
uuidverify_locally?Verify Locally
Default
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Partial rule update. Only the fields sent are applied; agent_id and topic_id accept null to widen the scope, every other field is a non-nullable column and rejects an explicit null.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/v1/insights/rules/497f6eca-6276-4993-bfeb-53cbbbba6f08?org_id=497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "topic_id": "646807af-5da6-43aa-83d3-8ac1d15ab4e5", "metric": "string", "comparator": "string", "threshold": 0, "window": "string", "min_volume": 0, "enabled": true, "voice_population": "string", "created_at": "2019-08-24T14:15:22Z"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}