<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating a marketing automated email with the API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/437786#M43368</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt; , any chance you have played in this area?&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 19:45:20 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2021-05-14T19:45:20Z</dc:date>
    <item>
      <title>Creating a marketing automated email with the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/437665#M43350</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;BR /&gt;I'm trying to create the Marketing email via the Marketing Email API.&lt;/P&gt;&lt;P&gt;How can I set Automated status for it?&lt;BR /&gt;I am sending an email type: "AUTOMATED_EMAIL" but it doesn't help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;BR /&gt;&lt;A href="https://api.hubapi.com/marketing-emails/v1/emails?hapikey=key" target="_blank" rel="noopener"&gt;https://api.hubapi.com/marketing-emails/v1/emails?hapikey=key&lt;/A&gt;&lt;BR /&gt;{"name":"Test Email",&lt;BR /&gt;"subject":"Test Subject",&lt;BR /&gt;"emailType":"AUTOMATED_EMAIL",&lt;BR /&gt;"fromName":"Jhon Doe",&lt;BR /&gt;"templatePath":"test-template.html",&lt;BR /&gt;"replyTo":"test@gmail.com"}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kate4_1-1621007603667.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42657iBBB32760021B0149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kate4_1-1621007603667.png" alt="kate4_1-1621007603667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:05:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/437665#M43350</guid>
      <dc:creator>kate4</dc:creator>
      <dc:date>2021-05-14T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a marketing automated email with the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/437786#M43368</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt; , any chance you have played in this area?&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 19:45:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/437786#M43368</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-05-14T19:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a marketing automated email with the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/438236#M43400</link>
      <description>&lt;P&gt;Unfortunately no. That request looks correct though. Is the response giving you any errors?&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/118421"&gt;@kate4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 15:24:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/438236#M43400</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2021-05-17T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a marketing automated email with the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/438625#M43429</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt;&amp;nbsp; Thank you for your attention!&lt;BR /&gt;I found a solution. It is necessary to send &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;"state" =&amp;gt; "AUTOMATED_DRAFT"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;in the request body.&amp;nbsp; Maybe it will help someone&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 13:46:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/438625#M43429</guid>
      <dc:creator>kate4</dc:creator>
      <dc:date>2021-05-18T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a marketing automated email with the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/438662#M43433</link>
      <description>&lt;P&gt;Ah! Good catch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I remember having to replace the emailType attribute when creating emails a while ago. I wish I had remembered that piece.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 15:02:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-marketing-automated-email-with-the-API/m-p/438662#M43433</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2021-05-18T15:02:00Z</dc:date>
    </item>
  </channel>
</rss>

