Approving email template via API always fail | Community
Skip to main content
Luis_Dalmolin
New Participant
October 28, 2019
Solved

Approving email template via API always fail

  • October 28, 2019
  • 1 reply
  • 1851 views

Hi there, 

I'm working on a system that creates email templates and approves them via API. We had everything working fine, but last week we started receiving API errors when approving the template. The errors are not really helpful as they are always the 611 - System Error error message.

Here is the one example of a template that is failing: marketo-template.html · GitHub 

If I go to Marketo and manually approve the template, it works. Also, if I create a new template with this content and approve it, it also works. It only fails from the API.

Any ideas what could be happening? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Luis_Dalmolin

So it turns out the the only thing missing in my API request is to set the header to Content-Type: application/x-www-form-urlencoded.

Would help to get better error messages, but anyway, that's the solution.

1 reply

Luis_Dalmolin
Luis_DalmolinAuthorAccepted solution
New Participant
October 28, 2019

So it turns out the the only thing missing in my API request is to set the header to Content-Type: application/x-www-form-urlencoded.

Would help to get better error messages, but anyway, that's the solution.