itinerary

Set Item Booked

Set an itinerary item's booked state — the single "mark booked" write path.

Works for any item type (flight, hotel, activity, car rental). Addressing:

  • item_id: flip is_booked on an item already in the itinerary.
  • (tool_call_id, result_index): a search-result / imported card. If it isn't in the itinerary yet it's added first (via target), then marked — this is the hotel-confirm flow, now generalized.

Invariant guard: un-booking (is_booked=False) is only allowed for search results (source "api"); it is rejected (400) for user_import and user_manual items — imported and hand-entered bookings stay booked.

post/trips/{trip_id}/itinerary/mark-booked

Path parameters

trip_idstring required

Headers

x-client-idstring nullable

Request body

item_idstring nullable
tool_call_idstring nullable
result_indexinteger nullable
target'journey' | 'stay' | 'activity' | 'car_rental'
is_bookedboolean
conversation_idstring nullable

Response

Successful Response

itineraryobject required
item_idstring required
addedboolean required

Changes

No recorded changes to this endpoint across all 3 revisions of this API.