update_transaction
Updates one transaction by transactionId. Wraps the updateTransaction RPC.
Description
Updates one transaction by transactionId. Wraps the updateTransaction RPC.
If transactionId is unknown, pass transactionNameHint (name or partial match like "coffee") or useLatestTransaction=true for the most recent entry (no name hint).
If several transactions match the hint, this asks which one — do not guess (even when useLatestTransaction is set).
Informal category names (e.g. "food", "dining", "this looks like groceries") auto-map to system categories; user-defined category names from list_categories resolve to their categoryId.
Unrecognized category labels are refused — ask the user or call list_categories.
To tag a transaction, pass tagNames (e.g. ["Client Meals"]): the named tags are added to its existing tags. transaction.tagIds replaces the full tag list instead. Pass one or the other, not both.
Get transactionId from list_transactions, read_transaction, or create_transaction.
If transactionFieldMasks is omitted, masks are inferred from the provided transaction fields.
After updating, confirm in plain language using friendly category names (not underscore enums).Input parameters
| Name | Type | Required | Description |
|---|---|---|---|
tagNames | array | No | |
transaction | object | No | |
transactionFieldMasks | array | No | |
transactionId | string | No | |
transactionNameHint | string | No | |
useLatestTransaction | boolean | No |