<?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 Updates to dynamic page source in CMS pages API in Developer Announcements</title>
    <link>https://community.hubspot.com/t5/Developer-Announcements/Updates-to-dynamic-page-source-in-CMS-pages-API/m-p/491079#M149</link>
    <description>&lt;P&gt;We recently &lt;A href="https://developers.hubspot.com/changelog/dynamic-pages-powered-by-crm-objects-are-now-live" target="_blank"&gt;made it possible to create dynamic pages powered by CRM objects&lt;/A&gt;&lt;SPAN style="font-weight: 400;"&gt;. Prior to this only HubDB was able to be used as a data source for dynamic pages.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add support for the additional source type we created 2 new properties (&lt;CODE&gt;dynamicPageDataSourceId&lt;/CODE&gt;, and &lt;CODE&gt;dynamicPageDataSourceType&lt;/CODE&gt;). We intended for this change to be non-breaking and would handle any API requests involving the old &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; by setting the values of &lt;CODE&gt;dynamic_page_data_source_id&lt;/CODE&gt;, and &lt;CODE&gt;dynamic_page_data_source_type&lt;/CODE&gt; automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works correctly for POST requests - to create new pages. Unfortunately for &lt;A href="https://legacydocs.hubspot.com/docs/methods/pages/put_pages_page_id" target="_blank"&gt;PUT requests - used to update existing pages&lt;/A&gt; - if a developer only passes the &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; the data source will not be updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because this only affects updates to existing pages, the number of affected accounts and requests is very low, but we wanted to provide guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on you should not use &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; in your API calls. Use &lt;CODE&gt;dynamic_page_data_source_id&lt;/CODE&gt; and &lt;CODE&gt;dynamic_page_data_source_type instead.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To keep backward compatibility, we will continue to return &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; in GET requests in the V2 API. Additionally we will continue to automatically upgrade POST requests made with &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt;. When the V3 API is released, it will not support &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt;.&lt;BR /&gt;&lt;BR /&gt;If you have any questions please ask below.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 15:29:17 GMT</pubDate>
    <dc:creator>jmclaren</dc:creator>
    <dc:date>2021-09-07T15:29:17Z</dc:date>
    <item>
      <title>Updates to dynamic page source in CMS pages API</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Updates-to-dynamic-page-source-in-CMS-pages-API/m-p/491079#M149</link>
      <description>&lt;P&gt;We recently &lt;A href="https://developers.hubspot.com/changelog/dynamic-pages-powered-by-crm-objects-are-now-live" target="_blank"&gt;made it possible to create dynamic pages powered by CRM objects&lt;/A&gt;&lt;SPAN style="font-weight: 400;"&gt;. Prior to this only HubDB was able to be used as a data source for dynamic pages.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add support for the additional source type we created 2 new properties (&lt;CODE&gt;dynamicPageDataSourceId&lt;/CODE&gt;, and &lt;CODE&gt;dynamicPageDataSourceType&lt;/CODE&gt;). We intended for this change to be non-breaking and would handle any API requests involving the old &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; by setting the values of &lt;CODE&gt;dynamic_page_data_source_id&lt;/CODE&gt;, and &lt;CODE&gt;dynamic_page_data_source_type&lt;/CODE&gt; automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works correctly for POST requests - to create new pages. Unfortunately for &lt;A href="https://legacydocs.hubspot.com/docs/methods/pages/put_pages_page_id" target="_blank"&gt;PUT requests - used to update existing pages&lt;/A&gt; - if a developer only passes the &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; the data source will not be updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because this only affects updates to existing pages, the number of affected accounts and requests is very low, but we wanted to provide guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on you should not use &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; in your API calls. Use &lt;CODE&gt;dynamic_page_data_source_id&lt;/CODE&gt; and &lt;CODE&gt;dynamic_page_data_source_type instead.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To keep backward compatibility, we will continue to return &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt; in GET requests in the V2 API. Additionally we will continue to automatically upgrade POST requests made with &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt;. When the V3 API is released, it will not support &lt;CODE&gt;dynamic_page_hubdb_table_id&lt;/CODE&gt;.&lt;BR /&gt;&lt;BR /&gt;If you have any questions please ask below.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:29:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Updates-to-dynamic-page-source-in-CMS-pages-API/m-p/491079#M149</guid>
      <dc:creator>jmclaren</dc:creator>
      <dc:date>2021-09-07T15:29:17Z</dc:date>
    </item>
  </channel>
</rss>

