Skip to content
Navigation

Update a trip

PUT
https://api.nicer.travel/travelers-trip/{travelersTripId}

Edits a trip in place. Every field is optional; only what you send changes. Moving tripStartDate or tripEndDate is checked against the segments already in the itinerary, so a date change that would orphan a booked segment is rejected instead of silently breaking the trip. The trip's primary traveler, its advisor of record (or the advisor who booked it for themselves), the admins of the agency that owns it and Nicer staff may call it; anyone else is refused (ERROR_UNAUTHORIZED).

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelersTripId
    string
    required

Request body JSON required

  • assignedAdvisorUserId
    optional

    Any of the following:

    • string
    • null
  • availableDate
    optional

    Any of the following:

    • string
    • object
      • from
        string
        required
      • to
        string
        required
  • budgetCurrency
    optional

    Any of the following:

    • string
    • null
  • destinations
    optional
    array of
    object
    • address
      optional

      Any of the following:

      • string
      • null
    • amenities
      optional
      array of
      string
    • city
      optional

      Any of the following:

      • string
      • null
    • country
      optional
      string
    • countryCode
      optional
      string
    • description
      optional
      string
    • distanceFromSearch
      optional
      object
      • unit
        km
        or
        mi
        required
      • value
        number
        required
    • features
      optional
      array of
      string
    • fullAddress
      optional
      string
    • gate
      optional

      Any of the following:

      • string
      • null
    • iataCode
      optional

      Any of the following:

      • string
      • null
    • internovaId
      optional
      string
    • latitude
      optional
      number
    • longitude
      optional
      number
    • name
      optional
      string
    • photos
      optional
      array of
      object
      • name
        string
        required
      • key
        optional
        string
      • url
        optional
        string
    • placeId
      optional
      string
    • region
      optional
      string
    • source
      optional
      string
    • state
      optional

      Any of the following:

      • string
      • null
    • terminal
      optional

      Any of the following:

      • string
      • null
    • timeZone
      optional
      string
    • zipCode
      optional

      Any of the following:

      • string
      • null
    • endDateTime
      optional
      string
      pattern: ^\d{4}-\d{2}-\d{2}$
    • headerImageUrl
      optional
      string
    • startDateTime
      optional
      string
      pattern: ^\d{4}-\d{2}-\d{2}$
  • hasFlexibleDates
    optional
    boolean
  • isAllPricesHidden
    optional
    boolean
  • isItineraryVisible
    optional
    boolean
  • isSummaryHidden
    optional
    boolean
  • specialRequests
    optional

    Any of the following:

    • string
    • null
  • travelers
    optional
    object
    • adults
      optional
      number
    • children
      optional
      number
  • tripEndDate
    optional
    string
    format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
  • tripStartDate
    optional
    string
    format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
  • tripTitle
    optional
    string

Returns

200

OK

JSON
  • associatedUserIds
    array of
    string
    required
  • companyName
    string
    required
  • createdBy
    string
    required
  • destinations
    array of
    object
    required
    • endDateTime
      string
      required
      pattern: ^\d{4}-\d{2}-\d{2}$
    • startDateTime
      string
      required
      pattern: ^\d{4}-\d{2}-\d{2}$
    • address
      optional

      Any of the following:

      • string
      • null
    • amenities
      optional
      array of
      string
    • city
      optional

      Any of the following:

      • string
      • null
    • country
      optional
      string
    • countryCode
      optional
      string
    • description
      optional
      string
    • distanceFromSearch
      optional
      object
      • unit
        km
        or
        mi
        required
      • value
        number
        required
    • features
      optional
      array of
      string
    • fullAddress
      optional
      string
    • gate
      optional

      Any of the following:

      • string
      • null
    • iataCode
      optional

      Any of the following:

      • string
      • null
    • internovaId
      optional
      string
    • latitude
      optional
      number
    • longitude
      optional
      number
    • name
      optional
      string
    • photos
      optional
      array of
      object
      • name
        string
        required
      • key
        optional
        string
      • url
        optional
        string
    • placeId
      optional
      string
    • region
      optional
      string
    • source
      optional
      string
    • state
      optional

      Any of the following:

      • string
      • null
    • terminal
      optional

      Any of the following:

      • string
      • null
    • timeZone
      optional
      string
    • zipCode
      optional

      Any of the following:

      • string
      • null
    • headerImageUrl
      optional
      string
  • hasFlexibleDates
    boolean
    required
  • isAllPricesHidden
    boolean
    required
    default: false
  • isItineraryVisible
    boolean
    required
    default: true
  • isSummaryHidden
    boolean
    required
    default: false
  • lastModifiedBy
    string
    required
  • primaryTravelerUserId
    string
    required
  • tripEndDate
    string
    required
  • tripStartDate
    string
    required
  • tripTitle
    string
    required
  • travelersTripId
    string
    required
  • createdAt
    string
    required
  • updatedAt
    string
    required
  • type
    string
    required
  • assignedAdvisorUserId
    optional

    Any of the following:

    • string
    • null
  • associatedChatId
    optional

    Any of the following:

    • string
    • null
  • associatedTripItineraryId
    optional

    Any of the following:

    • string
    • null
  • availableDate
    optional

    Any of the following:

    • string
    • object
      • from
        string
        required
      • to
        string
        required
  • budgetCurrency
    optional

    Any of the following:

    • string
    • null
  • conciergeMessageSentAt
    optional

    Any of the following:

    • string
    • null
  • createdReason
    optional
    CREATED_BY_TRAVELER
    or
    CREATED_BY_ADVISOR
    or
    CREATED_BY_MATCHING_ADVISOR
    or
    CREATED_BY_BOOKING
  • deleted
    optional
    boolean
  • deletedAt
    optional

    Any of the following:

    • string
    • null
  • deletedBy
    optional
    string
  • hasActivity
    optional
    boolean
  • lastMessageTimestamp
    optional

    Any of the following:

    • string
    • null
  • specialRequests
    optional

    Any of the following:

    • string
    • null
  • suggestionsEnabled
    optional
    boolean
  • travelers
    optional
    object
    • adults
      optional
      number
    • children
      optional
      number
  • amount
    optional
    number
  • budget
    optional

    Any of the following:

    • string
    • string
  • purpose
    optional

    Any of the following:

    • string
    • string
    • string
    • string
  • who
    optional

    Any of the following:

    • string
    • string
    • string
    • string

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