Add a booking
add_bookingSave one booking to Plot: a flight, hotel, car rental, train/bus/ferry/transfer, or a plan (restaurant, activity or event). Fill in exactly one of flight, hotel, car_rental, transport or plan. A flight with several segments (a round trip, a connection) is ONE booking: send all its segments together. Works like forwarding a booking email: leave trip_id out and Plot puts it in the right trip, or starts one. If the confirmation code is already in Plot, that booking is updated rather than duplicated, and the result says matched_existing_booking. Without a confirmation code Plot cannot tell a repeat from a new booking, so check get_trip before sending one again. Times are local to where they happen, with no timezone. Leave out anything the traveler has not told you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | ||
| hotel | No | ||
| flight | No | ||
| trip_id | No | Add to this trip. Omit it and Plot decides, exactly as it does for a forwarded booking email: it joins the trip these dates and places belong to, or starts a new one. | |
| transport | No | ||
| car_rental | No |