---
title: "Update Geo-Targeting"
method: PUT
path: "/v1/flight/{FlightID}/geotargeting/{LocationID}"
---

# Update Geo-Targeting

`PUT /v1/flight/{FlightID}/geotargeting/{LocationID}`

## Request

- Base URL: `https://api.kevel.co`
- URL: `https://api.kevel.co/v1/flight/{FlightID}/geotargeting/{LocationID}`
- Auth: API key in header `X-Adzerk-ApiKey`

## Path parameters

- `FlightID` integer, required
- `LocationID` integer, required

## Request body

- object
  - `CountryCode` string: The 2-3 character string that denotes the country you want to target
  - `Region` string: The 2-3 character string that denotes the region (or state) that you want to target
  - `MetroCode` integer: The 3 digit number that denotes the metropolitan area you want to target. US only.
  - `City` string: The name of the city you want to target
  - `CityGeonameId` integer: The numeric geoname ID that denotes the city you want to target. This is the value matched for city targeting. Retrieve valid IDs from the List Cities in Region endpoint.
  - `isExclude` boolean: If `true`, this will exclude the country from targeting. Defaults to `false/null`

## Response `200`

200

- object
  - `LocationId` integer
  - `FlightId` integer
  - `CountryCode` string
  - `Region` string
  - `MetroCode` integer
  - `City` string
  - `CityGeonameId` integer
  - `IsExclude` boolean

---

[API](https://skmtc.dev/kevel/apis/management-api-2.md) - [All operations](https://skmtc.dev/kevel/apis/management-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/kevel/apis/management-api-2/revisions/fe6c8716ca08?raw)
