Create itinerary item
segment_createCreate a new segment in a trip. FIRST call segment_get_schema to get the required fields for the segment type. Then provide the trip_id, segment_type, and fields matching the schema. Segment dates must fall within the parent trip dates; use trip_update first to extend the trip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Field values matching the schema for the segment type. Get schema first with segment_get_schema. | |
| trip_id | Yes | The trip ID to add the segment to | |
| segment_type | No | The type of segment to create (Flight, Lodging, CarRental, Train, Transfer, Ferry, EventTicket, Parking, Activity, Note, Poll) |