Create campaign from campaign template
POST {{baseUrl}}/v1/applications/:applicationId/create_campaign_from_template
Use the campaign template referenced in the request body to create a new campaign in one of the connected Applications.
If the template was created from a campaign with rules referencing campaign collections, the corresponding collections for the new campaign are created automatically.
Request Body
{"name"=>"Discount campaign", "description"=>"This template is for discount campaigns.", "templateId"=>4, "templateParamValues"=>[{"name"=>"my property", "type"=>"templateParameter", "valueType"=>"string"}], "limitOverrides"=>[{"action"=>"createCoupon", "limit"=>1000, "period"=>"yearly", "entities"=>["Coupon"]}], "campaignGroups"=>[1, 3], "tags"=>["summer"], "evaluationGroupId"=>2, "linkedStoreIds"=>[1, 2, 3]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |