---
title: "Edit Campaign"
method: PATCH
path: "/api/v1/openai-ads/campaigns/{campaign_id}"
tags: ["openaiAds"]
---

# Edit Campaign

`PATCH /api/v1/openai-ads/campaigns/{campaign_id}`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/openai-ads/campaigns/{campaign_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `campaign_id` string, required

## Request body

- DtoRequestOpenaiAdsRequestDTOUpdateCampaignRequestDTO
  - `account_id` string, required
  - `name` string, nullable
  - `budget` DraftBudgetDTO
    - `type` 'daily' | 'lifetime'
    - `amount` number
  - `targeting` DraftTargetingDTO
    - `locations` string[]
    - `all_locations` boolean
    - `excluded_locations` string[]
    - `platforms` string[]
  - `start_time` integer, nullable
  - `end_time` integer, nullable

## Response `200`

Successful Response

- OpenAIAdsResponseDTODictStrAny
  - `code` integer
  - `message` string
  - `data` object, required
  - `error_code` string, nullable

## Other responses

- `422`: Validation Error

## Changes

> 35 revisions in range; 1 not diffed.

- **2026-10-13** `c7202552278d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brandbooster/apis/fastapi/changes/api/v1/openai-ads/campaigns/:campaign_id/patch.md)

---

[API](https://skmtc.dev/brandbooster/apis/fastapi.md) - [All operations](https://skmtc.dev/brandbooster/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/fastapi/revisions/8e8c18c2dc35?raw)
