Monitor
Update Monitor
Update a monitor.
Only fields explicitly included in the request body are changed. Pass null for webhook or metadata to clear those fields. Pass type and settings to update type-specific settings on an event_stream monitor. At least one field must be provided. Cancelled monitors cannot be updated.
post/v1/monitors/{monitor_id}/update
Path parameters
monitor_idstring required
Request body
Example request
{
"type": "event_stream",
"frequency": "1h",
"webhook": {
"url": "https://example.com/webhook"
},
"metadata": {
"slack_thread_id": "1234567890.123456",
"user_id": "U123ABC"
},
"settings": {
"query": "Extract recent news about AI",
"advanced_settings": {
"source_policy": {
"include_domains": [
"wikipedia.org",
"usa.gov",
".edu"
],
"exclude_domains": [
"reddit.com",
"x.com",
".ai"
],
"after_date": "2024-01-01"
},
"location": "us"
}
}
}Response
Monitor updated successfully.
Example response
{
"type": "event_stream",
"status": "active",
"frequency": "1h",
"processor": "lite",
"webhook": {
"url": "https://example.com/webhook"
},
"metadata": {
"slack_thread_id": "1234567890.123456",
"user_id": "U123ABC"
},
"created_at": "2025-01-15T10:30:00Z",
"last_run_at": "2025-01-15T10:30:00Z",
"settings": {
"query": "Extract recent news about AI",
"output_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
},
"advanced_settings": {
"source_policy": {
"include_domains": [
"wikipedia.org",
"usa.gov",
".edu"
],
"exclude_domains": [
"reddit.com",
"x.com",
".ai"
],
"after_date": "2024-01-01"
},
"location": "us"
}
},
"output": {
"latest_snapshot": {
"basis": [
{
"confidence": "low"
}
]
}
}
}