SOLVED

API - Unable to approve email template

Go to solution
Luis_Dalmolin
Level 2

API - Unable to approve email template

Hi there,

I'm trying to create and approve an email template via Marketo API. I can create the email template fine, but when I try to approve the email template, I get two different errors:

1 - 611- System Error

This one happens when I try to approve the email template with an API call that happens right after I create the template.

2 - 611 - 1196 Unable to approve email template

This one happens when I call the endpoint a few seconds later of creating the email template.

If I go the Marketo Design Studio UI, I can approve the template without any errors, but I need to do this programmatically. 

The template I'm using is marketo-template.html · GitHub if helps. Is this a known error? Anything I can do about?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Luis_Dalmolin
Level 2

Re: API - Unable to approve email template

Alright, I figured the problem. My `class="mktEditable" id="body"` were in the <body> element, and that was making the approval fail. For some reason, using the UI works.

Creating a div inside the body and putting the content over there made it work.

View solution in original post

1 REPLY 1
Luis_Dalmolin
Level 2

Re: API - Unable to approve email template

Alright, I figured the problem. My `class="mktEditable" id="body"` were in the <body> element, and that was making the approval fail. For some reason, using the UI works.

Creating a div inside the body and putting the content over there made it work.