Creating a main campaign

Vouchery API supports two types of campaigns. Main campaign are used to group other campaign types. They don't have any specific functionality, except for some limitations, that you want to be applied to all sub-campaigns, like the total number of redemptions or total budget.
Sub campaign needs to belong to the main campaign and defines all rules and rewards that will adjust the transaction during the redemption process.

The only required property for the main campaign is its name.

Here're our examples:

curl --request POST \
     --user "username:password" \
     --url "" \
     --header "Content-Type: application/json" \
     --data \
  "type": "MainCampaign",
  "template": "discount",
  "name": "Fall Clearance Sale"