---
title: "Update an existing flight"
method: PATCH
path: "/measurement/flights/{id}"
tags: ["Flights"]
---

# Update an existing flight

`PATCH /measurement/flights/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `measurementFlight` FlightUpdatableAttributes, required
    - `startDate` string, date, required
    - `endDate` string, date, required
    - `expectedImpressions` integer
    - `impressionCap` integer
    - `cpm` number
    - `costPerSpot` number
    - `uid` string

## Response `200`

OK

- object
  - `measurementFlight` DynamicFlightWithParent
    - `id` integer
    - `startDate` string, date, required
    - `endDate` string, date, required
    - `expectedImpressions` integer
    - `impressionCap` integer
    - `cpm` number
    - `costPerSpot` number
    - `uid` string
    - `ad` union
      - DisplayAd
        - `id` string
        - `name` string
        - `uid` string
        - `adServer` 'acast' | 'adarcade' | 'adswizz' | 'amperwave' | 'art19' | 'audioboom' | 'audiohook' | 'audiomeans' | 'barstool' | 'basis' | 'beeswax' | 'beeswax_pod' | 'beeswax_stream' | 'dax' | 'dovetail' | 'dv_360' | 'frequency_ads' | 'gam' | 'gt_impression' | 'iheart_pd' | 'iheart_stream' | 'mediamath' | 'megaphone' | 'omny' | 'podbean' | 'redcircle' | 'sas' | 'simplecast' | 'soundcast' | 'soundstack' | 'spgam' | 'spotify' | 'spreaker' | 'tap' | 'transistor' | 'triton' | 'triton_pd' | 'triton_streaming' | 'ttd' | 'xandr' | 'xandr_pod' | 'xandr_stream'
        - `redirectUrl` string, uri — Where Magellan AI will redirect people after their response has been recorded.
      - DynamicAd
        - `id` string
        - `name` string
        - `uid` string
        - `adServer` 'acast' | 'adarcade' | 'adswizz' | 'amperwave' | 'art19' | 'audioboom' | 'audiohook' | 'audiomeans' | 'barstool' | 'basis' | 'beeswax' | 'beeswax_pod' | 'beeswax_stream' | 'dax' | 'dovetail' | 'dv_360' | 'frequency_ads' | 'gam' | 'gt_impression' | 'iheart_pd' | 'iheart_stream' | 'mediamath' | 'megaphone' | 'omny' | 'podbean' | 'redcircle' | 'sas' | 'simplecast' | 'soundcast' | 'soundstack' | 'spgam' | 'spotify' | 'spreaker' | 'tap' | 'transistor' | 'triton' | 'triton_pd' | 'triton_streaming' | 'ttd' | 'xandr' | 'xandr_pod' | 'xandr_stream'
        - `streaming` boolean — Whether this ad is a streaming ad.

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Content

---

[API](https://skmtc.net/magellan/apis/magellan-ai-api.md) · [All operations](https://skmtc.net/magellan/apis/magellan-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magellan/magellan-ai-api/revisions/a5681791212b/schema)
