---
title: "Archive Campaign"
method: POST
path: "/api/v1/campaigns/{campaign_id}/archive"
tags: ["campaigns"]
---

# Archive Campaign

`POST /api/v1/campaigns/{campaign_id}/archive`

## Request

- Base URL: `https://app.kaminari.ad`
- URL: `https://app.kaminari.ad/api/v1/campaigns/{campaign_id}/archive`
- Auth: HTTP bearer

Move a campaign to the archive.

## Path parameters

- `campaign_id` string, uuid, required

## Response `200`

Successful Response

- CampaignResponse: Campaign info returned by API.
  - `id` string, uuid, required
  - `name` string, required
  - `campaign_type` string
  - `url` string, required
  - `ad_tag` string, nullable
  - `vast_tag` string, nullable
  - `referrer` string, nullable
  - `ignore_first_n_domains` integer
  - `max_discovered_ads` integer, nullable
  - `ad_formats` DiscoveryAdFormat[], nullable
  - `country_codes` string[], required
  - `group_id` string, uuid, required
  - `emulator_selection` EmulatorSelectionResponse, required: Embedded emulator selection in campaign responses.
    - `categories` string[], required
    - `specific_ids` string[], required
    - `mode` string, required
  - `proxy_type` string
  - `proxy_region` string
  - `proxy_city` string
  - `proxy_isp` string
  - `repeat_count` integer
  - `repeat_mode` 'isolated' | 'shared': How the repeats of one ``url x country x device`` relate to each other. Value-compatible with scanning's ``RepeatModeType`` — campaigns owns its own copy because the write side must not import another domain's package (``check-imports``), and only the value crosses the boundary.
  - `retry_max_attempts` integer
  - `schedule_type` string, nullable
  - `schedule_weekly` object, nullable
  - `schedule_interval_seconds` integer, nullable
  - `schedule_timezone` string, nullable
  - `labels` object
  - `policy_set_id` string, uuid, nullable
  - `schedule_enabled` boolean, required
  - `is_archived` boolean, required
  - `created_at` string, date-time, required
  - `last_run_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kaminari/apis/kaminari-ad-api.md) · [All operations](https://skmtc.dev/kaminari/apis/kaminari-ad-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaminari/apis/kaminari-ad-api/revisions/013f86e2fd32?raw)
