Skip to content
Navigation

Update a trip itinerary

PUT
https://api.nicer.travel/trip-itinerary/{tripItineraryId}

Changes the itinerary's status, mode, trip cost, notes or attachments, and re-synchronizes the trip's start and end dates with the segments. A field left out keeps its stored value; in AUTO mode the trip cost is always the sum of the segments. Requires an advisor.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • tripItineraryId
    string
    required

Request body JSON required

  • itinerary
    optional
    object
    • attachments
      optional

      Any of the following:

      • array<unknown>
        • key
          optional
          string
        • name
          optional
          string
        • source
          optional

          Any of the following:

          • string
          • string
        • url
          optional
          string
      • null
    • notes
      optional
      array of
      object
      • id
        string
        required
      • note
        string
        required
      • title
        string
        required
  • mode
    optional
    AUTO
    or
    CUSTOM

    AUTO sums the segments into the trip cost; CUSTOM keeps tripCost as set. Omit to keep the current mode.

  • status
    optional
    PROPOSAL
    or
    IN_PROGRESS
    or
    TRAVELING
  • tripCost
    optional
    number

    The trip cost in USD, kept while the mode is CUSTOM. Omit to keep the current cost; in AUTO the cost is always the sum of the segments.

Returns

200

OK

JSON
  • itinerary
    optional
    object
    • attachments
      optional

      Any of the following:

      • array<unknown>
        • key
          optional
          string
        • name
          optional
          string
        • source
          optional

          Any of the following:

          • string
          • string
        • url
          optional
          string
      • null
    • notes
      optional
      array of
      object
      • id
        string
        required
      • note
        string
        required
      • title
        string
        required
  • mode
    optional
    AUTO
    or
    CUSTOM

    AUTO sums the segments into the trip cost; CUSTOM keeps tripCost as set. Omit to keep the current mode.

  • status
    optional
    PROPOSAL
    or
    IN_PROGRESS
    or
    TRAVELING
  • tripCost
    optional
    number

    The trip cost in USD, kept while the mode is CUSTOM. Omit to keep the current cost; in AUTO the cost is always the sum of the segments.

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close