Update a transaction
update_transactionModify a transaction's category, payee, notes, cleared status, date, or amount. Only provided fields change; null clears category, payee, or note.
Instructions
Change a transaction’s category, payee, notes, cleared flag, date, or amount. Only the fields you pass are touched; pass null to clear a category, payee, or note. Amounts are integer cents. Returns the transaction as stored afterwards — rules may rewrite a value on write, so trust the response over the request. The main tool for recategorizing during cleanup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the transaction to change. | |
| date | No | New date. | |
| notes | No | New note text, or null to clear it. | |
| amount | No | New amount in cents; negative is an outflow. | |
| cleared | No | Mark cleared or uncleared. | |
| payeeId | No | New payee id, or null to clear it. | |
| categoryId | No | New category id, or null to clear it. |