Update a rule
update_ruleReplace a budget rule's complete conditions and actions, overwriting the existing definition. Fetch the current rule first because omitted items are dropped, not preserved.
Instructions
Replace a rule’s conditions and actions. This overwrites the whole rule, so send the complete set — anything omitted is dropped, not preserved. Read the current rule with list_rules first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the rule to replace. | |
| stage | No | Defaults to null, the normal stage. | |
| actions | Yes | The complete action set, not a partial update. | |
| conditions | Yes | The complete condition set, not a partial update. | |
| conditionsOp | No | Defaults to "and". |