API referenceRules
`POST /rules/{id}/backtests` — run the rule over past data (ADR-0072 §5). Starts on the rule tick's next pass like a manual run; read it back with `GET /rules/{id}/runs`, and its matches with `GET /queries/{query_id}/results`. No alert is raised and the rule itself does not change.
POST
/rules/{id}/backtestsPath Parameters
id*string
Rule id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
POST /rules/{id}/backtests — run the rule over past data (ADR-0072 §5).
Response Body
application/json
curl -X POST "https://example.com/rules/string/backtests" \ -H "Content-Type: application/json" \ -d '{}'{ "backtest": null, "completed_at": "string", "created_at": "string", "deltas": { "property1": { "from": { "baseline": true, "committed_at": "string", "snapshot_id": "string" }, "to": { "baseline": true, "committed_at": "string", "snapshot_id": "string" } }, "property2": { "from": { "baseline": true, "committed_at": "string", "snapshot_id": "string" }, "to": { "baseline": true, "committed_at": "string", "snapshot_id": "string" } } }, "error_message": "string", "id": "string", "org_id": "string", "query_id": "string", "rule_id": "string", "started_at": "string", "status": null}