Create campaign from template
documentedCreate a draft campaign from a template.
POST /api/v3.3/campaigns/{clientid}/fromtemplate.{xml|json}Campaignsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.createsend.com/api/v3.3/campaigns/{{$clientid}}/fromtemplate.json" \
-X POST \
-u "{{CAMPAIGNMONITOR_API_KEY}}:" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"Name": "{{$campaign_name}}", "Subject": "{{$subject}}", "FromName": "{{$from_name}}", "FromEmail": "{{$from_email}}", "ReplyTo": "{{$reply_to}}", "ListIDs": ["{{$list_id_1}}","{{$list_id_2}}"], "SegmentIDs": ["{{$segment_id}}"], "TemplateID": "{{$template_id}}", "TemplateContent": {"Singlelines": [{"Content": "{{$heading}}","Href":"{{$heading_href}}"}], "Multilines": [{"Content":"{{$multiline_content}}"}], "Images": [{"Content":"{{$image_url}}","Alt":"{{$image_alt}}","Href":"{{$image_href}}"}], "Repeaters": [{"Items": [{"Layout": "{{$repeater_layout}}", "Singlelines": [{"Content":"{{$repeater_heading}}","Href":"{{$repeater_href}}"}], "Multilines": [{"Content":"{{$repeater_multiline}}"}], "Images": [{"Content":"{{$repeater_image_url}}","Alt":"{{$repeater_image_alt}}","Href":"{{$repeater_image_href}}"}]}]}]}}'