Skip to content
Navigation

Refresh a trip's header photos

POST
https://api.nicer.travel/travelers-trip/{travelersTripId}/header-photos

Gives each destination of the trip a header photo it can show: a destination without a photo, with a place photo that expires, with the old picker's 500 px thumbnail or with a photo the media CDN can no longer serve gets a landscape photo picked for the place, saved on the trip. An advisor's own upload is kept while it loads. Anyone who can see the trip may call it; nothing they send is stored, and the answer is the trip as it is now.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelersTripId
    string
    required

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