Campaigns
Update campaign
Updates an existing campaign.
PUT
/
campaigns/{id}Authorization
AuthorizationRequiredBearer <token>
API key authentication. Use your API key as the bearer token.
In: header
Request Body
application/jsonRequirednamestring
commission_typestring
Value in:
"percentage" | "fixed"commission_amountnumber
code_modestring
Referral code mode. "link" creates affiliate links, "coupon" creates promo codes, "both" creates both.
Value in:
"link" | "coupon" | "both"website_urlstring
Campaign website URL. Required when code_mode is "link" or "both".
reference_couponstring
Stripe coupon ID for the campaign. Required when code_mode is "coupon" or "both".
is_defaultboolean
Path Parameters
idRequiredstring
Resource UUID
Format:
"uuid"Campaign updated