May 14, 2021 12:05 PM
Hello!
I'm trying to create the Marketing email via the Marketing Email API.
How can I set Automated status for it?
I am sending an email type: "AUTOMATED_EMAIL" but it doesn't help.
For example:
https://api.hubapi.com/marketing-emails/v1/emails?hapikey=key
{"name":"Test Email",
"subject":"Test Subject",
"emailType":"AUTOMATED_EMAIL",
"fromName":"Jhon Doe",
"templatePath":"test-template.html",
"replyTo":"test@gmail.com"}
Solved! Go to Solution.
May 18, 2021 9:46 AM
Hi!
@tominal Thank you for your attention!
I found a solution. It is necessary to send "state" => "AUTOMATED_DRAFT" in the request body. Maybe it will help someone
May 18, 2021 9:46 AM
Hi!
@tominal Thank you for your attention!
I found a solution. It is necessary to send "state" => "AUTOMATED_DRAFT" in the request body. Maybe it will help someone
May 18, 2021 11:02 AM
Ah! Good catch.
I remember having to replace the emailType attribute when creating emails a while ago. I wish I had remembered that piece.
May 17, 2021 11:24 AM
Unfortunately no. That request looks correct though. Is the response giving you any errors? @kate4
May 14, 2021 3:45 PM
@tominal , any chance you have played in this area?