create monitor
Changed onCreate a monitor: a schedule that fills a dataset's output columns again daily, weekly, or monthly, compares each cell with the previous run, and can POST the results (or only changes) to a webhook. Pass dataset_id (or enrichment_id naming the dataset's enrichment) and, optionally, columns — the output column names each run fills (every one when omitted). The rows are the dataset's: a monitor takes no input; add rows with POST /datasets/{id}/rows.
Creating the monitor charges nothing. Every scheduled run is a fill of the dataset and charges the fill price (rows × the enrichment's per-row budget at most). estimate_cost: true returns the credit estimate for one scheduled run; max_credits refuses the monitor when that estimate is higher. Each run is listed by GET /monitors/{id}/runs and read by GET /runs/{id}/result; with output_format: include_diffs every cell carries previous_value and changed.
Request
- Base URLhttps://api.riveterhq.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
estimate_cost only — the credit estimate for ONE scheduled run (the dataset's rows × the per-row budget; type monitor); nothing was created
Example response
{
"estimate_cost": true,
"type": "enrichment",
"credit_detail": {
"estimate": {
"minimum": 0,
"maximum": 1920,
"charged_upfront": false
},
"credits_used": 0,
"credits_remaining": 5000,
"sufficient_credits": true
}
}Changes
- warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning
- info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status
- info