Save An Itinerary Whole
Writes the whole itinerary as data under expectedVersion: the version you read, or null to create it. A change since that version is refused as itineraryModified, with the current version as ETag; null for one that exists as preconditionRequired; over 256 KB as itineraryTooLarge; and, unless allowDuplicate is true, a second itinerary for the same destination and start date as duplicateItinerary, naming it in details.itineraryId. Answers the new version. As the Travelyfe apps store it: the whole itinerary as it is saved, with its version. Connected apps read and write itineraries at /v1/itineraries.
Only available to the Travelyfe apps. Tokens issued to other apps receive forbidden.
A Travelyfe access token.
In: header
Path Parameters
The itinerary id (UUID).
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/app/library/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "data": {} }'0