v1

latestOpenAPI 3.1.02026-08-062713899.5 KB
Users

Update user travel preferences

put/v2/users/{userId}/travel-preferences

Request body

Example request

{
  "preferences": {
    "airPref": {
      "airlinePrefs": [
        {
          "airlines": [
            "Indigo"
          ],
          "flightType": "DOMESTIC"
        }
      ],
      "alliancePref": {
        "alliances": [
          "STAR_ALLIANCE"
        ]
      },
      "farePref": {
        "fareTypes": [
          "CHANGEABLE"
        ]
      },
      "homeAirport": "NEW YORK",
      "mealPref": {
        "exclMealPrefs": [
          "VGML"
        ],
        "inclMealPrefs": [
          "VGML"
        ],
        "specialMealDescription": "Veg only meal"
      },
      "numStopPref": {
        "numOfStops": 34
      },
      "seatAmenityPref": {
        "seatAmenityTypes": [
          "WIFI"
        ]
      },
      "seatLocationPrefs": [
        {
          "cabins": [
            "FIRST"
          ],
          "maxFlightDurationInHours": 3,
          "position": "WINDOW"
        }
      ],
      "preferredAirports": [
        {
          "airportName": "San Francisco International Airport",
          "airportCode": "SFO",
          "label": "HOME"
        }
      ]
    },
    "preferredCurrency": "USD",
    "railCards": [
      {
        "expiryDate": {
          "iso8601": "2017-07-21"
        },
        "name": "Veterans Railcard",
        "spotnanaCode": "VET",
        "vendor": "ATOC"
      }
    ],
    "railPref": {
      "preferredRailStations": [
        {
          "stationName": "Chicago Union Station",
          "stationCode": "CHI",
          "cityName": "Chicago",
          "label": "HOME"
        }
      ],
      "seatPreference": {
        "seatTypes": [
          "NORMAL"
        ],
        "seatLocations": [
          "AISLE"
        ],
        "deckLevels": [
          "UPPER_DECK"
        ],
        "seatDirections": [
          "FORWARD"
        ]
      },
      "travelClasses": [
        "FIRST"
      ],
      "coachPreferences": [
        "NON_SMOKING"
      ],
      "conditionalRates": [
        "AAA"
      ]
    },
    "carPref": {
      "vendors": [
        {
          "code": "ZE",
          "name": "HERTZ",
          "isPresentInPreferredVendors": true
        }
      ],
      "carTypes": [
        "ECONOMY"
      ],
      "engineTypes": [
        "PETROL"
      ],
      "transmissionTypes": [
        "AUTOMATIC"
      ],
      "conditionalRates": [
        "AAA"
      ]
    },
    "hotelPref": {
      "hotelParentChains": [
        {
          "chainCode": "EM",
          "chainName": "Mariott"
        }
      ],
      "hotelBrands": [
        {
          "brandCode": "HY",
          "brandName": "Global Hytt Corp."
        }
      ],
      "roomPreference": {
        "bedCount": "ONE_BED",
        "roomType": "SMOKING",
        "mostImportantFact": "BED_COUNT",
        "roomLocation": "HIGH_FLOOR",
        "pillowType": "FOAM",
        "roomAmenityPrefs": [
          "EXTRA_TOWELS"
        ]
      },
      "conditionalRates": [
        "AAA"
      ]
    }
  }
}

Response

No Content