Vigilfield Docs
API referenceRules

`GET /rules/{id}/versions` — the rule's saved versions, newest first.

GET/rules/{id}/versions

Newest first, 50 a page; follow next_cursor until it is null. Who saved each version is a person, by user id and current name, or an app installation. An app reading this gets ids and no names.

Path Parameters

id*string

Rule id

Query Parameters

cursor?string

The previous page's next_cursor

Response Body

application/json

curl -X GET "https://example.com/rules/string/versions"
{  "data": [    {      "restored_from": 0,      "saved_at": "string",      "saved_by": {        "kind": "user",        "name": "string",        "user_id": "string"      },      "version": 0    }  ],  "next_cursor": "string"}