Returns all versions of a rule
Returns all versions of a rule
GET
/v1/{contextId}/rules/{ruleId}/versions
curl \
--request GET https://api.brease.run/v1/{contextId}/rules/{ruleId}/versions
Response examples (200)
{
"rules": [
{
"id": "string",
"version": 42,
"description": "string",
"actions": [
{
"kind": "string",
"target": {
"kind": "string",
"id": "string",
"value": "string"
}
}
],
"expression": {
"and": {
"expression": [
{}
]
},
"or": {
"expression": [
{}
]
},
"condition": {
"key": "string",
"ref": {
"src": "string",
"dst": "string",
"value": "string"
},
"kind": "e",
"value": "string"
}
}
}
],
"nextPageToken": "string"
}
Response examples (default)
{
"code": 42,
"message": "string",
"details": [
{
"@type": "string"
}
]
}