curl --request PATCH \
--url https://api.exa.ai/websets/v0/monitors/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"status": "enabled",
"metadata": {},
"cadence": {
"cron": "<string>",
"timezone": "Etc/UTC"
},
"behavior": {
"type": "search",
"config": {
"count": 123,
"query": "<string>",
"criteria": [
{
"description": "<string>"
}
],
"entity": {
"type": "company"
},
"behavior": "append"
}
}
}
'{
"id": "<string>",
"object": "monitor",
"status": "enabled",
"websetId": "<string>",
"cadence": {
"cron": "<string>",
"timezone": "Etc/UTC"
},
"behavior": {
"type": "search",
"config": {
"count": 123,
"query": "<string>",
"criteria": [
{
"description": "<string>"
}
],
"entity": {
"type": "company"
},
"behavior": "append"
}
},
"lastRun": {
"id": "<string>",
"object": "monitor_run",
"status": "created",
"monitorId": "<string>",
"type": "search",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"failedReason": "<string>",
"canceledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"nextRunAt": "2023-11-07T05:31:56Z",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Updates a monitor configuration.
curl --request PATCH \
--url https://api.exa.ai/websets/v0/monitors/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"status": "enabled",
"metadata": {},
"cadence": {
"cron": "<string>",
"timezone": "Etc/UTC"
},
"behavior": {
"type": "search",
"config": {
"count": 123,
"query": "<string>",
"criteria": [
{
"description": "<string>"
}
],
"entity": {
"type": "company"
},
"behavior": "append"
}
}
}
'{
"id": "<string>",
"object": "monitor",
"status": "enabled",
"websetId": "<string>",
"cadence": {
"cron": "<string>",
"timezone": "Etc/UTC"
},
"behavior": {
"type": "search",
"config": {
"count": 123,
"query": "<string>",
"criteria": [
{
"description": "<string>"
}
],
"entity": {
"type": "company"
},
"behavior": "append"
}
},
"lastRun": {
"id": "<string>",
"object": "monitor_run",
"status": "created",
"monitorId": "<string>",
"type": "search",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"failedReason": "<string>",
"canceledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"nextRunAt": "2023-11-07T05:31:56Z",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Your Exa API key
The id of the Monitor
The status of the monitor.
enabled, disabled Show child attributes
"search"Specify the search parameters for the Monitor.
By default, the search parameters (query, entity and criteria) from the last search are used when no parameters are provided.
Show child attributes
The maximum number of results to find
The query to search for. By default, the query from the last search is used.
2 - 10000The behaviour of the Search when it is added to a Webset.
override, append Monitor updated successfully
The unique identifier for the Monitor
The type of object
monitor The status of the Monitor
enabled, disabled The id of the Webset the Monitor belongs to
Behavior to perform when monitor runs
Show child attributes
"search"Specify the search parameters for the Monitor.
By default, the search parameters (query, entity and criteria) from the last search are used when no parameters are provided.
Show child attributes
The maximum number of results to find
The query to search for. By default, the query from the last search is used.
2 - 10000The behaviour of the Search when it is added to a Webset.
override, append The last run of the monitor
Show child attributes
The unique identifier for the Monitor Run
The type of object
monitor_run The status of the Monitor Run
created, running, completed, canceled, failed The monitor that the run is associated with
The type of the Monitor Run
search, refresh When the run completed
When the run failed
The reason the run failed
When the run was canceled
When the run was created
When the run was last updated
Date and time when the next run will occur in
When the monitor was created
When the monitor was last updated