TravelyfeHelp
SviluppatoriReferenceItineraries

Save An Itinerary Whole

PUT
/v1/app/library/{id}

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.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Path Parameters

id*string

The itinerary id (UUID).

Formatuuid

Request 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