API referenceRules
`GET /rules/{id}/versions/{version}` — one saved version: the whole definition, as `GET /rules/{id}` names its fields, with who saved it and when.
GET
/rules/{id}/versions/{version}Path Parameters
id*string
Rule id
version*string
Version number, from 1
Response Body
application/json
curl -X GET "https://example.com/rules/string/versions/string"{ "alerting": null, "description": "string", "enabled": true, "name": "string", "owner_team_id": "string", "query": null, "restored_from": 0, "rule_id": "string", "saved_at": "string", "saved_by": { "kind": "user", "name": "string", "user_id": "string" }, "schedule": "string", "status": null, "version": 0}`GET /rules/{id}/reads` — every table the rule's query reads. GET
Each name is resolved as the rule's owner team resolves it when the rule runs. A table is linked (`table`) only when you may open it; a table you may not, a name that matches no table and one that matches several all read as the name alone.
`GET /rules/{id}` — fetch a single rule. GET
Next Page