Skip to main content
POST
Update Monitor

Request contract

Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.012
  • Cost contract: explicit_zero
  • Settlement evidence source: request_snapshot

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

monitor_id
string
required

Body

application/json

Request body to update a monitor.

Only fields that are explicitly included in the request body are updated. null clears a field, and is accepted only for the fields that can be cleared: webhook, metadata, and settings.advanced_settings. Every other field rejects null; omit it to leave the current value unchanged. To update type-specific settings on an event_stream monitor, include type and settings; pass settings.query to update the prompt. If settings is provided, type is required to identify the settings shape. The request must still include at least one field to update; empty updates fail validation.

frequency
string | null

Frequency of the monitor. Format: '' where unit is 'h' (hours), 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive). Omit to keep the current frequency; null is rejected.

Example:

"1h"

metadata
Metadata · object | null

User-provided metadata stored with the monitor and echoed back in webhook notifications and GET responses, so you can map events to objects in your application. Keys: max 16 chars; values: max 512 chars.

Example:
processor
enum<string> | null

Processor to use for subsequent monitor runs. lite is faster and cheaper; base performs more thorough analysis at higher cost and latency. Omit to keep the current processor; null is rejected.

Available options:
lite,
base
Example:

"lite"

settings
UpdateMonitorEventStreamSettings · object | null

Type-specific settings to update. Only valid when type is event_stream. Pass settings.query to update the prompt, or null for settings.advanced_settings to clear it. Omit to leave type-specific settings unchanged; null is rejected.

type
enum<string> | null

Type of the monitor being updated. Required when settings is provided; must be event_stream (snapshot monitors have no updatable type-specific settings). Omit when settings is not provided; null is rejected.

Available options:
event_stream,
snapshot
Example:

"event_stream"

webhook
MonitorWebhook · object | null

Webhook to receive notifications about the monitor's execution.

Response

Monitor updated successfully.

Response object for a monitor.

The type field at the root determines the concrete shape of settings: event_stream uses MonitorEventStreamResponseSettings, and snapshot uses MonitorSnapshotResponseSettings. Snapshot monitors also carry an output field (MonitorSnapshotOutput) with the latest computed state.

created_at
string<date-time>
required

Timestamp of the creation of the monitor, as an RFC 3339 string.

Example:

"2025-01-15T10:30:00Z"

frequency
string
required

Frequency of the monitor. Format: '' where unit is 'h' (hours), 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).

Examples:

"1h"

"12h"

"1d"

"7d"

"30d"

monitor_id
string
required

ID of the monitor.

processor
enum<string>
required

Processor to use for the monitor. lite is faster and cheaper; base performs more thorough analysis at higher cost and latency. Defaults to lite.

Available options:
lite,
base
Examples:

"lite"

"base"

settings
MonitorEventStreamResponseSettings · object
required

Type-specific response fields for an event_stream monitor.

status
enum<string>
required

Status of the monitor.

Available options:
active,
cancelled
Examples:

"active"

"cancelled"

type
enum<string>
required

The type of monitor.

Available options:
event_stream,
snapshot
Examples:

"event_stream"

"snapshot"

last_run_at
string | null

Timestamp of the last run for the monitor, as an RFC 3339 string.

Example:

"2025-01-15T10:30:00Z"

metadata
Metadata · object | null

User-provided metadata stored with the monitor and echoed back in webhook notifications and GET responses, so you can map events to objects in your application. Keys: max 16 chars; values: max 512 chars.

Example:
output
MonitorSnapshotOutput · object | null

Runtime output state. Present only for snapshot monitors; null for event_stream monitors.

webhook
MonitorWebhook · object | null

Webhook configuration for the monitor.