---
title: "Обновить рекламную кампанию"
method: PATCH
path: "/campaigns/{campaign_id}"
tags: ["campaigns"]
---

# Обновить рекламную кампанию

`PATCH /campaigns/{campaign_id}`

## Request

- The document declares no server URL.
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/campaigns/:campaign_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Обновление рекламной кампании.

## Path parameters

- `campaign_id` integer, required

## Request body

- AppWebapiSchemasCampaignsCampaignUpdateRequest
  - `name` string, nullable
  - `start_parameter` string, nullable
  - `bonus_type` 'balance' | 'subscription' | 'none' | 'tariff', nullable: Тип бонуса кампании: balance (баланс), subscription (пробная подписка), none (без награды), tariff (тариф)
  - `balance_bonus_kopeks` integer, nullable
  - `subscription_duration_days` integer, nullable
  - `subscription_traffic_gb` integer, nullable
  - `subscription_device_limit` integer, nullable
  - `subscription_squads` string[], nullable
  - `tariff_id` integer, nullable
  - `tariff_duration_days` integer, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- CampaignResponse
  - `id` integer, required
  - `name` string, required
  - `start_parameter` string, required
  - `bonus_type` 'balance' | 'subscription' | 'none' | 'tariff', required: Тип бонуса кампании: balance (баланс), subscription (пробная подписка), none (без награды), tariff (тариф)
  - `balance_bonus_kopeks` integer, required
  - `balance_bonus_rubles` number, required
  - `subscription_duration_days` integer, nullable
  - `subscription_traffic_gb` integer, nullable
  - `subscription_device_limit` integer, nullable
  - `subscription_squads` string[]
  - `tariff_id` integer, nullable
  - `tariff_duration_days` integer, nullable
  - `tariff_name` string, nullable
  - `is_active` boolean, required
  - `created_by` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `registrations_count` integer

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `2360876ff9c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/changes/campaigns/:campaign_id/patch.md)

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
