Update Alert
Partially update an alert’s configuration.
All fields are optional - provide only what you want to update.
Unlike taxonomies, alerts can be fully updated including:
name: Rename the alertdescription: Update documentationretriever_id: Change the retrievernotification_config: Update notification channelsenabled: Enable/disable the alertmetadata: Update custom metadata
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Alert ID (alt_...) or name
Body
Request model to update an alert.
All fields are optional - provide only what you want to update. Core fields (retriever_id, notification_config) can be updated since alerts don't have join history like taxonomies.
Updated name for the alert
1 - 200Updated description for the alert
1000Updated retriever ID (source=retriever only)
Updated trigger condition: 'results' or 'no_results'
results, no_results Updated system condition (source=system only)
Updated org-level namespace scoping
Updated notification configuration
{
"channels": [
{
"channel_id": "wh_safety_team",
"channel_type": "webhook"
},
{
"channel_id": "sl_alerts",
"channel_type": "slack"
}
],
"include_matches": true,
"include_scores": true
}Updated enabled status
Updated metadata
Response
Successful Response
Response model for a single alert.
Human-readable name for the alert
1 - 200"Safety Incident Detector"
"Prohibited Content Alert"
How and where to send notifications when alert triggers
{
"channels": [
{
"channel_id": "wh_safety_team",
"channel_type": "webhook"
},
{
"channel_id": "sl_alerts",
"channel_type": "slack"
}
],
"include_matches": true,
"include_scores": true
}Unique identifier for the alert
"alt_abc123xyz789"
Namespace this alert belongs to
"ns_production"
Optional description of what this alert monitors
1000"Alerts when new videos match known safety incidents"
Trigger source: 'retriever' (runs a retriever) or 'system' (built-in metric)
retriever, system ID of the retriever to execute (source=retriever only). The retriever defines filters, scoring, limits.
"ret_safety_search"
For source=retriever: fire on 'results' (matches found) or 'no_results' (retriever went dark).
results, no_results Built-in data-plane condition to watch (source=system only)
Org-level namespace scoping (all vs selected). When omitted, the alert is scoped to its own namespace_id.
Whether the alert is active and will execute
Timestamp when the alert was created
Timestamp when the alert was last updated
Additional user-defined metadata for the alert

