v1

latestOpenAPI 3.1.02026-07-2616636641.7 KB

Create Geo-Targeting

post/v1/flight/{FlightID}/geotargeting

Path parameters

FlightIDinteger required

ID of the Flight

Request body

CountryCodestring

The 2-3 character string that denotes the country you want to target

Regionstring

The 2-3 character string that denotes the region (or state) that you want to target

MetroCodeinteger

The 3 digit number that denotes the metropolitan area you want to target. US only.

IsExcludeboolean

If leave blank, this will default to false/null and target the country. If you want to exclude it instead, use true

Response

200

LocationIdinteger
FlightIdinteger
CountryCodestring
Regionstring
MetroCodeinteger
IsExcludeboolean

Example response

{
  "LocationId": 76543,
  "FlightId": 12345,
  "CountryCode": "US",
  "Region": "NC",
  "MetroCode": 560
}