Add, edit or remove segments
POST
https://api.nicer.travel/trip-itinerary/{tripItineraryId}/segment
Applies a list of operations to one itinerary's segments and re-synchronises the trip dates. add may omit the segment id — the API derives a stable one from the content, so repeating the same add is a no-op rather than a duplicate. A segment that is paid, held or booked is frozen: update and delete on it are refused. Prices are minor units (cents).
Authorization
Path parameters
Request body JSON required
Any of the following:
- object
- operationsarray ofrequired}
One of the following:
- array<one of>}
One of the following:
Returns
200
OK
JSON