update_expense
Modify an existing expense's description, amount, split, date, or category. Changing the amount requires supplying a new split to redistribute the total unambiguously.
Instructions
Update an existing expense's description, amount, split, date, or category.
Changing amount requires also supplying split, so the new total is divided unambiguously; there is no way to change amount alone without this tool guessing how to redistribute it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | New expense date, if changing it. A value with no timezone is treated as UTC. | |
| split | No | New division of the expense among its participants. | |
| amount | No | New total cost, if changing it. Requires split to also be given. | |
| confirm | No | Skip the confirmation step and apply the change immediately. | |
| expense_id | Yes | Id of the expense to update. | |
| category_id | No | New category id, if changing it. | |
| description | No | New description, if changing it. | |
| category_name | No | Name (or partial name) of the new category. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Splitwise's numeric id for this expense. | |
| cost | Yes | Total cost of the expense, in currency_code units. | |
| date | Yes | Date and time the expense occurred. | |
| splits | No | Per-participant owed and paid shares for this expense. | |
| deleted | No | Whether this expense has been soft-deleted in Splitwise. | |
| category | No | Category assigned to this expense, if any. | |
| group_id | No | Id of the group this expense belongs to, if any. | |
| description | Yes | Short human-readable description of the expense. | |
| currency_code | Yes | ISO 4217 currency code the cost is denominated in. |