Skip to content

Switch a rule on or off

PUT
/v1/rules/{id}/enabled
curl --request PUT \
--url http://localhost:8080/v1/rules/example/enabled \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'

Bank policy: a disabled rule is skipped by every subsequent reconciliation run, and the skip is recorded on the run and in the evidence chain; never silent. Works for shipped and custom rules. Administrators only. 404 for an unknown rule id.

id
required
string
Media typeapplication/json
object
enabled
boolean
Examplegenerated
{
"enabled": true
}

OK

Media typeapplication/json
object
rulesetVersion
required
string
rules
required
Array<object>

One row of the Rules page: a shipped or bank-authored rule with its policy state.

object
id
required
string
version
required
string
severity
required
string
title
required
string
fields
required
Array<string>
enabled
required
boolean
isCustom
required
boolean
spec
required
One of:
null
Examplegenerated
{
"rulesetVersion": "example",
"rules": [
{
"id": "example",
"version": "example",
"severity": "example",
"title": "example",
"fields": [
"example"
],
"enabled": true,
"isCustom": true,
"spec": {
"id": "example",
"title": "example",
"severity": "example",
"field": "example",
"comparison": "example",
"kind": "example",
"docType": "example"
}
}
]
}