wal
wal

Reputation: 17719

create a campaign using a 'new builder' template

I have a MailChimp Email Template that looks like the following (note the id 10564231)

enter image description here

I am creating a new campaign via the API

{
  "type": "regular",
  "recipients": {
    "list_id": "..."   
  },
  "settings": {
    "subject_line": "a test",
    "preview_text": "",
    "title": "",
    "from_name": "...",
    "reply_to": "...",    
    "template_id": 10564231
  },   
  "content_type": "template"
}

this works and the returned JSON looks similar to

{
...
    "settings" : {
    ...
    "template_id": 10564231
    }
}

however when you look at the campaign it does not use the template - instead it has some placeholder info that looks like this

enter image description here

enter image description here

It seems to have reverted to 'Classic builder' and the template is not being used.

Why is mailchimp not using the template?

As an aside, if you use a template that was created with the "Classic" builder everything works

Upvotes: 1

Views: 289

Answers (1)

I had the same problem and the issue was the setting of Content type. The API documentation has two option.

  • template - which used the classic builder
  • multichannel - which use the new builder

Upvotes: 0

Related Questions