Update an expense
update_expenseUpdate fields on an existing expense by id. Partial update: only the fields you provide are changed; omitted fields keep their current value. If unfamiliar with TripLedger semantics, call get_tripledger_guide first. An expense is always tied to exactly one journey OR stay: to move it, set the new parent (optionally nulling the old wire field too); re-attaching re-checks that you own the new parent. A null parent without a replacement requests unassignment and is rejected. Categories are preset: ticket/addon/upgrade for journey expenses, room/addon/upgrade for stay expenses — when moving between kinds, include a category valid for the new kind in the same call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the expense to update. | |
| fxRate | No | ||
| stayId | No | ||
| spentAt | No | ||
| category | No | ||
| currency | No | ||
| feesMinor | No | ||
| journeyId | No | ||
| amountMinor | No | ||
| description | No | ||
| payerPersonId | No |