Skip to main content
POST
Update CPL campaign settings.
Изменяет auto_renewal_* и hide_income_stats у заказа в статусе waiting или accepted. Автопродление пересчитывается по офферу в момент отправки: auto_renewal_max_price должен покрывать цену за фана для запрошенного количества, иначе запрос отклоняется.

Авторизации

X-API-Key
string
header
обязательно

Your API key from the Studio Dashboard

Параметры пути

public_id
string
обязательно

Resource public id. Format varies by endpoint: cplo_xxxxxxx for CPL campaigns, cpco_xxxxxxx for CPC orders, swpo_xxxxxxx for swap orders, cpcr_xxxxxxx for CPC creatives, revi_xxxxxxx for RevShare invoices.

Pattern: ^[a-z0-9_]+$

Тело

application/json
auto_renewal
boolean
обязательно

When true, on completion the order auto-creates a follow-up of the same shape.

hide_income_stats
boolean
обязательно

When true, this order's income/ROMI is hidden from the partner offer page.

auto_renewal_fans
integer

Required when auto_renewal=true. Must fall inside the offer's [min_quantity, max_quantity] window.

Требуемый диапазон: x >= 1
auto_renewal_max_price
number<float>

Required when auto_renewal=true. Per-fan price cap; must be ≥ the server-computed per-fan cost for the requested quantity.

Требуемый диапазон: 0 <= x <= 10000

Ответ

Updated.

success
boolean
data
object