update_tracker
Update the name, date range, spending limit, or rules (categories, tags, auto-add) of an existing tracker. Only passed fields change; limitAmount null removes the limit. With rules on, every update re-checks all transactions against them. Lines are managed with create_tracker_line, update_tracker_line and delete_tracker_line. Changing smart-tracking fields or dates rescans the tracker and fails while a scan is already queued or running. Returns the updated tracker record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New tracker name | |
| tagIds | No | Replace the rule tags | |
| endDate | No | New end date (ISO 8601) | |
| aiEnabled | No | Turn smart tracking on or off. Owner only; enabling needs a description and a start date (already saved or passed here) | |
| startDate | No | New start date (ISO 8601) | |
| trackerId | Yes | ID of the tracker to update | |
| categoryIds | No | Replace the rule categories; parent IDs include their children | |
| limitAmount | No | New spending limit as a decimal amount in the user's base currency (e.g. 500.00). Pass null to remove the limit | |
| rulesCleanup | No | Remove rule-added transactions that stop matching the rules | |
| rulesEnabled | No | Auto-add the user's transactions in the date range matching the rule categories or tags | |
| aiDescription | No | Plain-language description of what belongs in the tracker (max 500 chars). Owner only; null clears it | |
| aiPreWindowDays | No | Days before startDate the AI also scans. One of 0, 14, 30, 60, 90, 180. Owner only |