Alerts
Update alert configuration
Updates an existing alert's configuration including conditions, queries, thresholds, notification destinations, and scheduling. Allows users to modify alert behavior and settings as monitoring requirements change.
put/api/v2/{org_id}/alerts/{alert_id}
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
org_idstring required
Organization name
alert_idstring required
Alert ID
Query parameters
folderstring
Folder ID (Required if RBAC enabled)
Request body
Example request
{
"description": "Fires when error count exceeds threshold in the specified time window",
"destinations": [
"slack-alerts",
"pagerduty"
],
"incident_title_template": "{service_name} errors on {host}",
"name": "High Error Rate Alert",
"oncall_team": "2f9K3mXQpLrTgYw8vN1cBzHd0Ae",
"pending_period_sec": 10,
"priority": 3,
"runbook_url": "https://wiki.example.com/runbooks/checkout",
"stream_name": "default",
"tags": [
"prod",
"service:checkout"
],
"workflows": [
"abcde12345"
]
}Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.