Policies
Get Policy Versions
Get version history for a policy.
Returns a list of all versions (metadata only) ordered by timestamp descending.
Raises: ResourceNotFoundError: If the policy does not exist.
curl -X GET "https://api.grayswan.ai/policies/string/versions"{
"policy_id": "string",
"versions": [
{
"id": "string",
"operation": "string",
"timestamp": "2019-08-24T14:15:22Z",
"user_id": "string",
"diff": [
{}
]
}
],
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}