This is fake endpoint to describe variant of PUT /api/v2.1/campaigns/{campaign_id}Ask AIput https://admin.sandbox.vouchery.app/api/v2.1/campaigns/{campaign_id}#___sub_campaignUpdate a campaign.Path Paramscampaign_idintegerrequiredCampaign IDBody ParamsThe object with fields to updatechannelstringNullable. String or null.currencystringNullable. Currency denominating monetary values in this campaign (USD, GBP, EUR, AUD)currency_symbolstringNullable. Currency symbol ($, £, €)customer_informationstringNullable. Text that can be displayed to the customer once the redemption is validated or confirmed.descriptionstringNullable. String or null.gift_card_valuedoubleNullable. Float64 or nullis_automatedbooleanrequiredtruefalseloyalty_points_costint64Nullable. Integer or nullmax_discountdoubleNullable. Float64 or nullmax_redemptionsint32Nullable. The maximum number of redemptions available across all discount campaigns grouped by this campaign.max_redemptions_unitint32Nullable. Integer or nullmax_total_budgetdoubleNullable. The budget available for all discount campaigns grouped by this campaign.max_total_budget_unitint32Nullable. Integer or nullmediumstringNullable. String or null.minimum_valuedoubleNullable. Float64 or nullnamestringNullable. The name of the campaign must be unique.purposestringNullable. String or null.statusstringenumNullable. String or null.draftdraftactiveinactivearchivedAllowed:draftactiveinactivearchivedtypestringenumrequiredMain Campaign is a wrapper for multiple Sub Campaigns, grouped together. Main Campaign can have own budget and redemptions limit.SubCampaignAllowed:SubCampaignvoucher_code_typestringenumNullable. What characters should the code include when new voucher is created. Possible choices are digits, letters, and mixed.digitsdigitslettersmixedAllowed:digitslettersmixedvoucher_lifetimeint64Nullable. Voucher lifetime in secondsvoucher_max_redemptionsint64Nullable. The maximum number of redemptions per unique voucher code.voucher_max_redemptions_amountdoubleNullable. The maximum total discount of all redemptions per unique voucher code.voucher_prefixstringNullable. A prefix that will be used to generate vouchers. Needs to be unique within project.voucher_random_part_lengthint32Nullable. How long should the random part of the code be? Valid values are between 2 and 10, depending on batch size.voucher_typestringenumNullable. 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.uniqueuniquegenericgift_cardAllowed:uniquegenericgift_cardResponses 200Updated object 401Unauthorized error. 403Forbidden error. 422Unprocessable entity error. Validation failed. 500Internal server error. Try again in a few minutes or contact support.Updated over 2 years ago