Update a trip
update_tripChange a trip: title, dates, status, notes, cover photo, travellers (replaces the list). Also: merge_from_trip_id folds another trip into this one and deletes it (irreversible); cancellations settles items flagged as possibly cancelled from a forwarded email (remove deletes them, keep clears the flag); refresh_places re-works out the places visited and the drives between them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes. | |
| title | No | Title. | |
| status | No | past, planning, booked or active. | |
| trip_id | Yes | The trip id. | |
| end_date | No | Date, YYYY-MM-DD. | |
| budget_raw | No | A budget with currency, e.g. "AUD 8000"; null clears it. | |
| start_date | No | Date, YYYY-MM-DD. | |
| travellers | No | Who travelled, by name. New names are added to the account's people. | |
| cancellations | No | Settle items a forwarded email flagged as possibly cancelled. | |
| cover_photo_id | No | A photo id to use as the cover, or "" to clear it. | |
| refresh_places | No | Re-derive places and infer drives. | |
| merge_from_trip_id | No | A trip to merge into this one; it is deleted afterwards. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merged | No | The merge, when one was asked for. | |
| trip_id | Yes | The trip. | |
| updated | No | Fields changed. | |
| drives_added | No | Drives inferred. | |
| places_added | No | Places worked out. | |
| cancellations_kept | No | Flagged items kept. | |
| cancellations_removed | No | Flagged items deleted. |