update_expense
Update a single existing expense row's category, tag, merchant, or business purpose (e.g. 'recategorize expense X to Meals' or 'tag it Client – Acme'). Identify it only by the exact expenseId returned by search_expenses (the full Receipt ID from Column Q). Never use a date, displayed number, or sheet row number as expenseId. Two-phase operation: calls with confirm omitted or false return a preview of the current→proposed change and make no change. After user confirmation, a call with confirm:true applies the proposed change. Only category/tag/merchant/businessPurpose are editable — amounts, dates, and notes are not editable via the assistant. Does not create or delete rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Partial update object. Include one or more of these optional keys; omit every field that should remain unchanged. | |
| confirm | No | Omit or false = preview only (no write). Must be exactly true to apply the change. | |
| expenseId | Yes | Exact full Receipt ID from Column Q, returned as expenseId by search_expenses. |