Create An Itinerary
Creates a private itinerary. title, destination and center are required; everything else can follow. An itinerary for the same destination and start date as one you already have is refused as duplicateItinerary unless you pass allowDuplicate=true. Adding packing or expenses needs Pro.
A Travelyfe access token.
In: header
Query Parameters
Create even if you already have one for this destination and date.
Header Parameters
A unique key per logical request. Retrying with the same key and body replays the first response instead of repeating the write.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Any itinerary fields. title, destination and center are required on create.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/itinerary" \ -H "Content-Type: application/json" \ -d '{}'{ "title": "string", "destination": "string", "origin": "string", "summary": "string", "center": { "latitude": 0, "longitude": 0 }, "startDate": "2019-08-24", "tags": [ "string" ], "bestSeason": "string", "homeCurrency": "string", "days": [ { "id": "string", "title": "string", "summary": "string", "imageURL": "http://example.com", "stops": [ { "id": "string", "name": "string", "address": "string", "category": "string", "coordinate": { "latitude": 0, "longitude": 0 }, "startTime": "string", "durationMinutes": 0, "note": "string", "phone": "string", "bookingURL": "http://example.com" } ] } ], "packing": [ { "id": "string", "name": "string", "quantity": 0, "category": "string", "isPacked": true } ], "expenses": [ { "id": "string", "title": "string", "amount": 0, "currency": "string", "date": "2019-08-24", "category": "string" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "visibility": "private", "role": "owner", "author": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "likesCount": 0, "viewsCount": 0}