---
title: "Update Campaign Dynamic Budget Allocation"
method: POST
path: "/campaign_dba"
tags: ["Campaigns"]
---

# Update Campaign Dynamic Budget Allocation

`POST /campaign_dba`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/campaign_dba`
- 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/campaign_dba/post.ts> (a function with typed inputs; its response is checked against the schema)

This end point is restricted to a specific service account

## Request body

- object[]
  - `id` integer, required: campaign id
  - `dynamic_budget_allocation_applied` string, date-time, nullable
  - `dynamic_budget_allocation_available` string, date-time, nullable

## Response `200`

Dba bulk response

- object
  - `data` object[]
    - `id` integer, required: campaign id
    - `dynamic_budget_allocation_applied` string, date-time, nullable
    - `dynamic_budget_allocation_available` string, date-time, nullable
  - `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`: Dba bulk response
- `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)
