<?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: Upcoming: Changes to the Marketing Events API in Developer Announcements</title>
    <link>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/769616#M427</link>
    <description>&lt;P&gt;I'm currently trying to use the &lt;FONT face="courier new,courier"&gt;/marketing/v3/marketing-events/attendance/{externalEventId}/{subscriberState}/email-create&lt;/FONT&gt; endpoint and getting the following response:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "status": "error",
    "message": "externalAccountId is required",&lt;/LI-CODE&gt;&lt;P&gt;I can see it's not marked as a required parameter in the documentation. I've since added the parameter to my request body like so:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "inputs": [{
        "interactionDateTime": "2023-03-16T10:00:00.000Z",
        "email": "test@test.com"
    }],
    "externalAccountId": "27093333"
}&lt;/LI-CODE&gt;&lt;P&gt;But I'm still getting the same error response. Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 11:51:17 GMT</pubDate>
    <dc:creator>RBunney</dc:creator>
    <dc:date>2023-03-16T11:51:17Z</dc:date>
    <item>
      <title>Upcoming: Changes to the Marketing Events API</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/726786#M380</link>
      <description>&lt;P&gt;We're releasing some new features for marketing events. These new features include the ability to create contacts from the events, as well as tracking registration and detailed attendance for the events.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As part of these updates, we're making changes to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/marketing/marketing-events" rel="noopener" target="_blank"&gt;Marketing Events API&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to support these new features.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;What's new?&lt;/H3&gt;
&lt;P&gt;3 new endpoints are being released:&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;&lt;CODE&gt;POST&amp;nbsp; /marketing/v3/marketing-events/attendance/{externalEventId}/{subscriberState}/create&lt;/CODE&gt;&lt;BR /&gt;Changes the state of a specified attendee. The state can be:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;register&lt;/CODE&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;attend&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;cancel&lt;/CODE&gt;. If the state is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;attend&lt;/CODE&gt;, you can optionally include&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;joinedAt&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;leftAt&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;values to record how long they attended the event.&lt;/LI&gt;
&lt;LI aria-level="1"&gt;&lt;CODE&gt;POST&amp;nbsp; /marketing/v3/marketing-events/attendance/{externalEventId}/{subscriberState}/email-create&lt;/CODE&gt;&lt;BR /&gt;Works like the previous endpoint, but can use an email address instead of a contact record ID to create a new contact in HubSpot.&lt;/LI&gt;
&lt;LI aria-level="1"&gt;&lt;CODE&gt;POST /marketing/v3/marketing-events/events/{externalEventId}/complete&lt;/CODE&gt;&lt;BR /&gt;This endpoint is used after the event is finished, and all attendance updates have been made. Calling this endpoint triggers the calculation of the attendance duration for all attendees, which updates the timeline entries for the attendees.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;What's being removed?&lt;/H3&gt;
&lt;P&gt;With the release of the new endpoints, 2 endpoints are being sunset:&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;&lt;CODE&gt;POST /marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/upsert&lt;/CODE&gt;&lt;BR /&gt;This is replaced by the new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/create&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;endpoint&lt;/LI&gt;
&lt;LI aria-level="1"&gt;&lt;CODE&gt;POST /marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/email-upsert&lt;/CODE&gt;&lt;BR /&gt;This is being replaced by the new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/email-create endpoint&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;What's changing?&lt;/H3&gt;
&lt;P&gt;Aside from the new URLs, the main difference between the old endpoints and the new ones is the support of the optional&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;joinedAt&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;leftAt&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;fields. Otherwise the data will be the same as you used with the old endpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, you will need to make a request to the new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/complete&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;endpoint to make sure that the attendance duration is displayed in the timeline of the related contact records in HubSpot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;When is this happening?&lt;/H3&gt;
&lt;P&gt;The new endpoints and functionality are available today, and can be used immediately. Please see the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/marketing/marketing-events" rel="noopener" target="_blank"&gt;Marketing Events API documentation&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for details on using the new endpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 2 sunset endpoints will be removed on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;April 30th, 2023&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if you have any questions by replying below.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 20:23:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/726786#M380</guid>
      <dc:creator>Dadams</dc:creator>
      <dc:date>2022-12-05T20:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Upcoming: Changes to the Marketing Events API</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/769616#M427</link>
      <description>&lt;P&gt;I'm currently trying to use the &lt;FONT face="courier new,courier"&gt;/marketing/v3/marketing-events/attendance/{externalEventId}/{subscriberState}/email-create&lt;/FONT&gt; endpoint and getting the following response:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "status": "error",
    "message": "externalAccountId is required",&lt;/LI-CODE&gt;&lt;P&gt;I can see it's not marked as a required parameter in the documentation. I've since added the parameter to my request body like so:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "inputs": [{
        "interactionDateTime": "2023-03-16T10:00:00.000Z",
        "email": "test@test.com"
    }],
    "externalAccountId": "27093333"
}&lt;/LI-CODE&gt;&lt;P&gt;But I'm still getting the same error response. Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 11:51:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/769616#M427</guid>
      <dc:creator>RBunney</dc:creator>
      <dc:date>2023-03-16T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Upcoming: Changes to the Marketing Events API</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/831979#M487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution is to add&amp;nbsp;externalAccountId as param on the url&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/create-email?externalAccountId=XX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:40:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Upcoming-Changes-to-the-Marketing-Events-API/m-p/831979#M487</guid>
      <dc:creator>MSafont</dc:creator>
      <dc:date>2023-08-09T13:40:23Z</dc:date>
    </item>
  </channel>
</rss>

