Update a trip
anywayr_update_tripChanges the dates or the number of travelers of a trip you can edit (the same edits the Anywayr website allows; budget, title and preference edits are refused for now). Requires the version you last read with anywayr_get_trip; a stale version is refused rather than overwritten. Multi-city date changes and child-leg party changes require the Anywayr website. Does not share, invite or book. Effects: Writes a new trip version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| trip_ref | Yes | Anywayr trip reference (starts with trp_), as returned by anywayr_plan_trip, anywayr_list_trips or anywayr_get_trip. | |
| request_key | Yes | Any unique string of 16-128 characters you generate (letters, digits and . _ : -). Reuse the same key only to retry the exact same request. | |
| expected_version | Yes |