Itineraries (v2)

Change a draft's inputs

The same body as create, on an itinerary the caller may edit (can.edit on the document: the owner, an itinerary editor, or an accepted editor of its trip); anyone else gets 404. Fields left out keep their stored values. The row keeps its plan; generate again to rebuild it. Only the owner can move it to another trip.

put/api/v2/itineraries/{externalId}

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v2/itineraries/{externalId}
  • Auth: HTTP bearer

Request body

generateboolean
tripExternalIdstring nullable

Must not be greater than 64 characters.

destinationstring nullable

Must not be greater than 255 characters.

destinationIdinteger nullable
startDatestring nullable

Must be a valid date in the format <code>Y-m-d</code>.

endDatestring nullable

Must be a valid date in the format <code>Y-m-d</code>.

intensityLevelstring nullable

Must not be greater than 20 characters.

numAdultsinteger

Must be at least 0. Must not be greater than 50.

numSeniorsinteger

Must be at least 0. Must not be greater than 50.

numChildreninteger nullable

Must be at least 0. Must not be greater than 50.

childrenAgesinteger[]

Must be at least 0. Must not be greater than 17.

interestsstring[]

Must not be greater than 100 characters.

categoriesstring[]

Must not be greater than 100 characters.

mustDostring nullable

Must not be greater than 2000 characters.

mustDoChipsstring[]

Must not be greater than 255 characters.

tripType'single_city' | 'multi_city'
quickStartTemplateIdinteger nullable

Example request

{
  "generate": true,
  "tripExternalId": "b",
  "destination": "n",
  "destinationId": 16,
  "startDate": "2026-10-16",
  "endDate": "2026-10-16",
  "intensityLevel": "ngzmiyvdljnikhwa",
  "numAdults": 24,
  "numSeniors": 18,
  "numChildren": 8,
  "childrenAges": [
    1
  ],
  "interests": [
    "y"
  ],
  "categories": [
    "u"
  ],
  "mustDo": "w",
  "mustDoChips": [
    "p"
  ],
  "tripType": "single_city",
  "stops": [
    {
      "destination": "n",
      "destination_id": 16,
      "nights": 22
    }
  ],
  "quickStartTemplateId": 16
}

Response

external_idstring
statestring

Example response

{
  "external_id": "9c7e",
  "state": "draft",
  "inputs": {
    "destination": "Porto, Portugal"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.