Skip to main content
Rules

Update rule

Any field may be omitted to leave it unchanged. For rules that have been migrated, only name, description, enabled, and the value of existing actions can be updated.

PUT
/rules/{ruleId}
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ruleIdintegerrequired

The rule ID

Body

application/json
actionsstring
conditionsany[]

The full set of conditions for the rule. Include an id on an entry to update an existing condition, or omit it to create a new one. Each entry has the same shape as in the create-rule endpoint.

descriptionstring | null

An optional description of what the rule does.

Maximum string length: 192
enabledboolean

Whether the rule is active. Disabled rules are not applied.

financial_accountsany[]

The financial accounts the rule is attached to, each as { id, order }. Only accepted for rules attached to financial accounts.

namestring

The name of the rule.

Maximum string length: 64
skip_other_rules_when_triggeredboolean

When true, no further rules are evaluated once this rule triggers.

The transfer links the rule is attached to, each as { id, order }. Only accepted for rules attached to transfer links.

trigger_on_any_conditionboolean

When true, the rule triggers if any condition matches; when false, all conditions must match.

Response

application/json
dataobjectrequired
messagestringrequired