Update an alert rule
Update an alert rule. Only the fields included in the request body are changed.
Documentation Index
Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
An API key is a token that you provide when making API calls. Include the token in a header parameter called X-API-KEY.
Path Parameters
The rule_id must be a prefixed ID (e.g. ar_0Kx4mNpQ8rWvYb2dFgHjLs).
^ar_[A-Za-z0-9]+$"ar_0Kx4mNpQ8rWvYb2dFgHjLs"
Body
Partial update for an alert rule. Include only the fields you want to change.
Alert rule name
Project ID
Metric to monitor.
turn_latency_p50, turn_latency_p95, api_errors, function_errors, call_crashes, call_volume Comparison operator used by the alert rule.
>, <, >=, <= x >= 0Evaluation window duration. Allowed values: 5m, 10m, or 60m.
5m, 10m, 60m Response
Alert rule updated successfully.
An alert rule: its trigger condition, evaluation window, and current state.
Alert rule ID
^ar_[A-Za-z0-9]+$"ar_0Kx4mNpQ8rWvYb2dFgHjLs"
Alert rule name
Metric being monitored
turn_latency_p50, turn_latency_p95, api_errors, function_errors, call_crashes, call_volume Comparison operator
>, <, >=, <= Threshold value
x >= 0Window duration (5m, 10m, or 60m)
5m, 10m, 60m Whether the alert is enabled
Creation timestamp
Last update timestamp
Project ID
Current alert state
ok, alert, no_data, unknown When the current state started
Last evaluation timestamp
Current metric value

