Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MailChimp API v3 campaign content template sections

I'm referring to this page in the API documentation when trying to programatically create content for a MailChimp campaign. I have the following section in my template and I'm trying to change its content:

<td mc:edit="body">To be replaced by API</td>

and here is the JSON request:

{"template":{"id":"170189","sections":{"body":"testing content"}}}

But the content isn't being changed! Everything else is working, eg template 170189 is being loaded into the campaign. Any hints?

like image 548
Joe Bligh Avatar asked Nov 24 '15 15:11

Joe Bligh


1 Answers

Fixed - mc:edit sections won't be updated by the API if they sit within a mc:repeatable!

like image 82
Joe Bligh Avatar answered Nov 16 '22 01:11

Joe Bligh