splitwise_undelete_expense
Restore a deleted Splitwise expense by ID to undo a deletion and bring back its original shares and balances.
Instructions
Restore a deleted expense.
Calls POST /undelete_expense/{id}. Refused with Error: … writes are disabled unless
SPLITWISE_ALLOW_WRITES=1 (enforced by the server's client). The expense comes back
with its original shares, so balances change again.
When to Use:
Undo a
splitwise_delete_expense.Bring back an expense seen as
[deleted]insplitwise_get_expenseswith include_deleted=true.
When NOT to Use:
On an expense that is not deleted (nothing to restore).
To restore a deleted group (use
splitwise_undelete_group).
Returns:
The success value Splitwise returned.
Examples:
params = {"expense_id": 3456789012}
Error Handling:
Splitwise answers 200 even when it refuses — the client turns success: false into
Error: Splitwise rejected the request…. 404 → wrong id; 403 → not your expense.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |