This is fake endpoint to describe variant of PUT /api/v2.1/campaigns/{campaign_id}

Update a campaign.

Path Params
integer
required

Campaign ID

Body Params

The object with fields to update

string

Nullable. String or null.

string

Nullable. Currency denominating monetary values in this campaign (USD, GBP, EUR, AUD)

string

Nullable. Currency symbol ($, £, €)

string

Nullable. Text that can be displayed to the customer once the redemption is validated or confirmed.

string

Nullable. String or null.

double

Nullable. Float64 or null

boolean
required
int64

Nullable. Integer or null

double

Nullable. Float64 or null

int32

Nullable. The maximum number of redemptions available across all discount campaigns grouped by this campaign.

int32

Nullable. Integer or null

double

Nullable. The budget available for all discount campaigns grouped by this campaign.

int32

Nullable. Integer or null

string

Nullable. String or null.

double

Nullable. Float64 or null

string

Nullable. The name of the campaign must be unique.

string

Nullable. String or null.

string
enum

Nullable. String or null.

Allowed:
string
enum
required

Main Campaign is a wrapper for multiple Sub Campaigns, grouped together. Main Campaign can have own budget and redemptions limit.

Allowed:
string
enum

Nullable. What characters should the code include when new voucher is created. Possible choices are digits, letters, and mixed.

Allowed:
int64

Nullable. Voucher lifetime in seconds

int64

Nullable. The maximum number of redemptions per unique voucher code.

double

Nullable. The maximum total discount of all redemptions per unique voucher code.

string

Nullable. A prefix that will be used to generate vouchers. Needs to be unique within project.

int32

Nullable. How long should the random part of the code be? Valid values are between 2 and 10, depending on batch size.

string
enum

Nullable. Determines what type of vouchers can be generated for campaign. Generic vouchers (eg. SALE10) can be redeemed multiple times. Unique vouchers allow for greater control and better tracking of who and how is using your promotions.

Allowed:
Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json