update_cospend_bill
Update an existing Cospend bill in Nextcloud by modifying only the fields you pass, such as amount, payer, owers, date, or category, leaving others unchanged.
Instructions
Update a Cospend bill. Requires PARTICIPANT access.
Pass only fields you want to change. See create_cospend_bill for field semantics.
Args: project_id: String project id. bill_id: Integer bill id. what: New description. amount: New amount. payer: New payer member id. payed_for: New non-empty list of ower member ids (replaces, doesn't merge). Passing [] raises ValueError — the server no-ops silently on empty payedFor, which would look like a successful update but leave owers unchanged. date: New "YYYY-MM-DD" date. timestamp: Alternative to date. comment: New comment. category_id: New category id (0 = uncategorized). payment_mode_id: New payment mode id (0 = unset). repeat: New repeat mode ("n", "d", "w", "b", "s", "m", "y"). repeat_freq: New repeat frequency. repeat_until: New stop date "YYYY-MM-DD". Pass empty string to clear (repeat indefinitely). repeat_all_active: New owers behavior on repeat. deleted: 0 = restore from trash, 1 = move to trash. Use delete_cospend_bill for trashing in normal flow.
Returns: JSON {"bill_id": } confirming the updated bill id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| what | No | ||
| payer | No | ||
| amount | No | ||
| repeat | No | ||
| bill_id | Yes | ||
| comment | No | ||
| deleted | No | ||
| payed_for | No | ||
| timestamp | No | ||
| project_id | Yes | ||
| category_id | No | ||
| repeat_freq | No | ||
| repeat_until | No | ||
| payment_mode_id | No | ||
| repeat_all_active | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |