Update Alert
Changed onPartially 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 alert
- `description`: Update documentation
- `retriever_id`: Change the retriever
- `notification_config`: Update notification channels
- `enabled`: Enable/disable the alert
- `metadata`: Update custom metadata
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/alerts/{alert_identifier}
- Auth: HTTP bearer and API key in header X-Namespace
Path parameters
Alert ID (alt_...) or name
Request body
Example request
{
"threshold": {
"field": "score",
"value": 0.9
},
"system_condition": {
"params": {
"stall_minutes": 30
}
},
"namespace_selector": {
"namespace_ids": [
"ns_production",
"ns_staging"
]
},
"notification_config": {
"channels": [
{
"channel_id": "wh_safety_team",
"channel_type": "webhook"
},
{
"channel_id": "sl_alerts",
"channel_type": "slack"
}
],
"include_matches": true,
"include_scores": true
}
}Response
Successful Response
Example response
{
"alert_id": "alt_safety_001",
"description": "Alerts when new videos match known safety incidents",
"enabled": true,
"name": "Safety Incident Detector",
"notification_config": {
"channels": [
{
"channel_id": "wh_safety_team",
"channel_type": "webhook"
}
],
"include_matches": true,
"include_scores": true
},
"retriever_id": "ret_safety_search"
}Changes
- warning
removed the optional property
from the response with the status - warning
added the new
ingest_stalledenum value to the//response property for the response status - info
added the new
ingest_stalledenum value to the request property// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- warning
added the new
budget_thresholdenum value to the//response property for the response status - warning
added the new
collection_staleenum value to the//response property for the response status - warning
added the new
retriever_no_interactionsenum value to the//response property for the response status - info
added the new
budget_thresholdenum value to the request property// - info
added the new
collection_staleenum value to the request property// - info
added the new
retriever_no_interactionsenum value to the request property//
- warning