---
title: "Bulk Update Budget Flights"
method: POST
path: "/bulk_update/budget_flights"
tags: ["Campaigns Budget Flights"]
---

# Bulk Update Budget Flights

`POST /bulk_update/budget_flights`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/bulk_update/budget_flights`
- Auth: OAuth 2
  - Authorization code: `https://auth.mediamath.com/authorize`
  - Token URL: `https://auth.mediamath.com/oauth/token` scopes: `offline_access`, `manage:services`
- TypeScript: <https://skmtc.dev/mediamath/apis/campaigns-api/docs/bulk_update/budget_flights/post.ts> (a function with typed inputs; its response is checked against the schema)

Update multiple budget flights

## Request body

- object
  - `budget_flights` object
    - `create` object[]
      - `start_date` string, date-time, required
      - `end_date` string, date-time, required: The latest end date of flight must be no more than 36 months after the earliest start date
      - `total_budget` number, float, required
      - `total_impression_budget` integer, nullable
      - `campaign_id` integer, required
    - `update` object[]
      - `id` integer, required
      - `start_date` string, date-time
      - `end_date` string, date-time: The latest end date of flight must be no more than 36 months after the earliest start date
      - `total_budget` number, float
      - `total_impression_budget` integer, nullable
      - `is_relevant` boolean
    - `delete` object[]
      - `id` integer

## Response `200`

Updated budget flight list

- object
  - `data` array[]
    - CampaignBudgetFlights[]
      - `id` integer
      - `start_date` string, date-time
      - `end_date` string, date-time: The latest end date of flight must be no more than 36 months after the earliest start date
      - `total_budget` number, float
      - `total_impression_budget` integer, nullable
      - `is_relevant` boolean
  - `meta` ListMetadata
    - `status` string, required: The status of the response, indicating success or failure.
    - `count` integer, required: The number of items returned in the current response.
    - `total_count` integer: The total number of items available in the dataset.
    - `offset` integer: The offset from the start of the dataset, used for pagination.
    - `next_page` string: The URL to fetch the next page of results.
    - `prev_page` string: The URL to fetch the previous page of results.

## Other responses

- `207`: Multi-status updated budget flight list
- `400`: Error response
- `401`: Error response
- `403`: Error response

---

[API](https://skmtc.dev/mediamath/apis/campaigns-api.md) - [All operations](https://skmtc.dev/mediamath/apis/campaigns-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mediamath/apis/campaigns-api/revisions/408743891def?raw)
