---
title: "Update Flights"
method: PUT
path: "/v1/flight/{FlightID}"
---

# Update Flights

`PUT /v1/flight/{FlightID}`

This lets you update flights.

## Path parameters

- `FlightID` integer, required

## Query parameters

- `excludeAds` boolean

## Request body

- object
  - `Id` integer, required — The ID of the Flight
  - `Name` string, required — The name of the Flight
  - `StartDateISO` string, required — Start date in ISO 8601 format: `YYYY-MM-DDTHH:MM:SS.SSSSSSS`. You can also just use `YYYY-MM-DD`
  - `EndDateISO` string — End date in ISO 8601 format: `YYYY-MM-DDTHH:MM:SS.SSSSSSS`. You can also just use `YYYY-MM-DD`
  - `NoEndDate` boolean — If flight has no specified End Date, set to `true`
  - `CampaignId` integer, required — The ID of the campaign
  - `PriorityId` integer, required — The ID of the Priority
  - `GoalType` integer, required — This is the metric that Kevel uses to pace the ads so it hits the desired goal by the end date. Key follows: `1 = Impressions 2 = Percentage 3 = Click 7 = Conversion 8 = Revenue 9 = Daily Revenue 10 = Monthly Revenue`. Instructions are [here](https://dev.kevel.com/docs/flights#section-goals)
  - `Impressions` integer, required — The Goal Amount
  - `IsActive` boolean, required — Active/inactive state of the flight
  - `IsDeleted` boolean — If want to delete, set to `true`
  - `IsArchived` boolean — Specifies whether flight is archived.
  - `BidModifiers` object[] — See [Bid Modifiers documentation](https://dev.kevel.com/docs/bid-modifiers#how-to-configure-bid-modifiers-using-the-management-api) for example usage.
    - `Match` object
      - `Keyword` string
      - `Site` integer
      - `Zone` integer
      - `Segment` integer
      - `SearchTerm` object
        - `Term` string

## Response `200`

200

- object
  - `Name` string
  - `StartDateISO` string
  - `EndDateISO` string
  - `CampaignId` integer
  - `PriorityId` integer
  - `GoalType` integer
  - `Impressions` integer
  - `RateType` integer
  - `Price` integer
  - `CapType` integer
  - `DailyCapAmount` integer
  - `LifetimeCapAmount` integer
  - `IsActive` boolean
  - `Keywords` string
  - `CustomTargeting` unknown
  - `GeoTargeting` object[]
    - `CountryCode` string
    - `Region` string
    - `MetroCode` integer
    - `IsExclude` boolean
  - `SiteZoneTargeting` object[]
    - `SiteId` integer
    - `ZoneId` integer
    - `IsExclude` boolean
  - `IsFreqCap` boolean
  - `FreqCap` integer
  - `FreqCapDuration` integer
  - `FreqCapType` integer
  - `DontAffectParentFreqCap` boolean
  - `IsCompanion` boolean
  - `IsNoDuplicates` boolean
  - `IsTrackingConversions` boolean
  - `CanPassback` boolean
  - `PassbackSortOrder` integer
  - `IsArchived` boolean
  - `IsSunday` boolean
  - `IsMonday` boolean
  - `IsTuesday` boolean
  - `IsWednesday` boolean
  - `IsThursday` boolean
  - `IsFriday` boolean
  - `IsSaturday` boolean
  - `IsECPMOptimized` boolean
  - `ECPMOptimizePeriod` integer
  - `ECPMMultiplier` number
  - `FloorECPM` number
  - `CeilingECPM` number
  - `DefaultECPM` number
  - `ECPMBurnInImpressions` integer
  - `BehavioralTargeting` object
    - `onClick` object
      - `stopShowingAdsFromFlight` boolean
      - `stopShowingAdsFromAdvertiser` boolean
      - `storeCategoriesFromFlightAsInterest` boolean
    - `onConvert` object
      - `stopShowingAdsFromFlight` boolean
      - `stopShowingAdsFromAdvertiser` boolean
      - `storeCategoriesFromFlightAsInterest` boolean

---

[API](https://skmtc.net/kevel/apis/engine-apis.md) · [All operations](https://skmtc.net/kevel/apis/engine-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kevel/engine-apis/versions/0ca55f45aa7d/schema)
