---
title: "Update Campaign"
method: PUT
path: "/api/v1/campaigns/{campaign_id}"
tags: ["Campaigns"]
---

# Update Campaign

`PUT /api/v1/campaigns/{campaign_id}`

## Request

- Base URL: `https://api.adrex.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.adrex.ai/api/v1/campaigns/{campaign_id}`
- Auth: none declared

Update a campaign

## Path parameters

- `campaign_id` integer, required

## Request body

- CampaignUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `platform` string, nullable
  - `status` string, nullable
  - `objective` string, nullable
  - `budget_type` string, nullable
  - `budget_amount` number, nullable
  - `start_date` string, nullable
  - `end_date` string, nullable
  - `target_audience` TargetAudience
    - `age_min` integer, nullable
    - `age_max` integer, nullable
    - `gender` string, nullable
    - `interests` string[], nullable
  - `target_locations` object[], nullable
  - `target_keywords` string[], nullable

## Response `200`

Successful Response

- CampaignResponse
  - `id` integer, required
  - `name` string, required
  - `description` string, nullable
  - `platform` string, required
  - `status` string, nullable
  - `google_status` string, nullable
  - `meta_status` string, nullable
  - `objective` string, nullable
  - `budget_type` string, nullable
  - `budget_amount` number, nullable
  - `google_budget` number, nullable
  - `meta_budget` number, nullable
  - `currency` string
  - `start_date` string, nullable
  - `end_date` string, nullable
  - `target_audience` object, nullable
  - `target_locations` unknown[], nullable
    - unknown
  - `target_keywords` unknown[], nullable
    - unknown
  - `google_customer_id` string, nullable
  - `meta_account_id` string, nullable
  - `google_campaign_id` string, nullable
  - `meta_campaign_id` string, nullable
  - `client_id` integer, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/adrex/apis/adrex-ai.md) · [All operations](https://skmtc.dev/adrex/apis/adrex-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/adrex/apis/adrex-ai/revisions/4e6f0f0bc902?raw)
