Update expense
update_expenseEdit an existing expense by changing only the fields you pass, such as cost, date, notes, split, or payer. Read the expense first to confirm changes with the user.
Instructions
Edits an existing expense. Only the fields you pass change. Changing the cost alone rescales everyone's shares proportionally; pass split to redistribute, or paid_by to change who paid. Read the expense with get_expense first so you can confirm the change with the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | New total cost. | |
| date | No | A date as YYYY-MM-DD, or an ISO 8601 timestamp. | |
| notes | No | Replaces the expense notes. | |
| split | No | How to divide the cost. "equal": among participants; leftover cents go to the first participants listed. "exact": explicit amounts per person. "percentage": percent per person; rounding goes to the largest remainders. Omit to keep the current proportions. | |
| paid_by | No | Who paid the whole cost. | |
| expense_id | Yes | The Splitwise expense id. | |
| description | No | ||
| currency_code | No | 3-letter ISO 4217 currency code, e.g. USD, EUR, INR, JPY. |