Policies

Get Policy Versions

GET
/policies/{policy_id}/versions

Get version history for a policy.

Returns a list of all versions (metadata only) ordered by timestamp descending.

Docs: Guide | API Reference

Raises: ResourceNotFoundError: If the policy does not exist.

Path Parameters

policy_id*Policy Id

Response Body

application/json

application/json

curl -X GET "https://example.com/policies/string/versions"
{  "policy_id": "string",  "versions": [    {      "id": "string",      "operation": "string",      "timestamp": "2019-08-24T14:15:22Z",      "user_id": "string",      "diff": [        {}      ]    }  ],  "total": 0}