Add flight to trip
flight_quickaddLook up a real flight by number and date, then create it as a segment in the trip. Combines flight_quickadd_lookup + segment_create in one call. May take 2-5 seconds due to external flight data lookup. Segment dates must fall within the parent trip dates; use trip_update first to extend the trip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| airline | No | Full airline name as fallback (e.g., 'American Airlines'). Used only if airline_code is not provided. | |
| trip_id | Yes | The trip ID to add the flight to | |
| airline_code | No | IATA or ICAO airline code (AA, UA, DL, AAL). Optional if embedded in flight_number. | |
| flight_number | Yes | Flight number, e.g. 'AA3242', 'UA100', or just '3242' if airline_code is provided | |
| departure_date | Yes | Departure date in YYYY-MM-DD format |