Update campaign
PUT {{baseUrl}}/v1/applications/:applicationId/campaigns/:campaignId
Update the given campaign.
Request Body
{"name"=>"Summer promotions", "description"=>"Campaign for all summer 2021 promotions", "startTime"=>"2021-07-20T22:00:00Z", "endTime"=>"2021-10-01T02:00:00Z", "attributes"=>{"myattribute"=>20}, "state"=>"disabled", "activeRulesetId"=>2, "tags"=>["Summer", "Shoes"], "features"=>["coupons", "loyalty"], "couponSettings"=>{"validCharacters"=>["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], "couponPattern"=>"SUMMER-####-####"}, "referralSettings"=>{"validCharacters"=>["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], "couponPattern"=>"SUMMER-####-####"}, "limits"=>[{"action"=>"createCoupon", "limit"=>1000, "period"=>"yearly", "entities"=>["Coupon"]}], "campaignGroups"=>[1, 3], "evaluationGroupId"=>2, "type"=>"advanced", "linkedStoreIds"=>[1, 2, 3]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |