upsert_account_balance_history
Create or update monthly balance history for an account, with all-or-nothing validation. Only past calendar months can be written.
Instructions
Create or update monthly balance history entries for a single account. Every month must be a past calendar month — the current month is calculated on demand and cannot be written. The request is all-or-nothing: if any entry fails validation, none are applied. The response contains only the entries submitted, not the account's full history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| balances | Yes | One or more monthly balance entries to create or update. If any entry fails validation the entire request is rejected and nothing is updated. | |
| account_id | Yes | Id of the account to write balance history for. | |
| account_type | Yes | Type of account the balance history belongs to. Use manual for manually-managed accounts, plaid for synced bank accounts, crypto_manual for manually-managed crypto, and deleted for accounts that no longer exist but still have history. Synced crypto uses the dedicated crypto_synced tools instead. |