<?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: After updating a widget with smart content via API, the old value is displayed in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781048#M63096</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537636"&gt;@VOsos&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out! I'd like to invite some of our community members to the conversation — hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/74"&gt;@Phil_Vallender&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146"&gt;@Gonzalo&lt;/a&gt;, do you have any suggestions or thoughts on how you like to troubleshoot challenges like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look! — Jaycee&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 18:35:06 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-04-12T18:35:06Z</dc:date>
    <item>
      <title>After updating a widget with smart content via API, the old value is displayed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/780544#M63054</link>
      <description>&lt;P&gt;I tried to update the data of a widget that has &lt;EM&gt;Smart rules&lt;/EM&gt; enabled. I tried to update the data through the legacy API (&lt;A href="https://legacydocs.hubspot.com/docs/methods/pages/put_pages_page_id" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/pages/put_pages_page_id&lt;/A&gt;) as well as through the new version of the API (&lt;A href="https://developers.hubspot.com/docs/api/cms/pages" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/cms/pages&lt;/A&gt;). The data that was sent with the update request looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"widgets"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"dnd_area_main_banner-module-4"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"body"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"html"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"test (Default)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"smart_objects"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"criterion_id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;109961314221&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"body"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"html"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"test (Desktop)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"criterion_id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;109961314222&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"body"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"html"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"test (Mobile)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;When viewing the page in edit mode, I see a flicker between the new widget value and the old value (you can see it in the attached gif image). The old value is available for editing, the new value is displayed only for a second. When viewing the page in preview mode, the new value that was set via the update endpoint is displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to update the data through one of the update endpoints so that the new value is displayed when editing the page through UI?&lt;BR /&gt;Or is it some kind of implementation error on the part of the Hubspot, and if so, maybe there are some workarounds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: widget type is Rich Text&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ezgif-1-b85f9db810.gif" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/88996iD60A1C15182B3ADB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ezgif-1-b85f9db810.gif" alt="ezgif-1-b85f9db810.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:25:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/780544#M63054</guid>
      <dc:creator>VOsos</dc:creator>
      <dc:date>2023-04-12T12:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: After updating a widget with smart content via API, the old value is displayed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781048#M63096</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537636"&gt;@VOsos&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out! I'd like to invite some of our community members to the conversation — hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/74"&gt;@Phil_Vallender&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146"&gt;@Gonzalo&lt;/a&gt;, do you have any suggestions or thoughts on how you like to troubleshoot challenges like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 18:35:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781048#M63096</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-04-12T18:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: After updating a widget with smart content via API, the old value is displayed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781235#M63107</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think its not published. sometimes you have to unpublish/publish and clear cdn cache.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:34:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781235#M63107</guid>
      <dc:creator>SJaeger</dc:creator>
      <dc:date>2023-04-13T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: After updating a widget with smart content via API, the old value is displayed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781282#M63112</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;. unfortunately unpublish and then publish did not help to solve the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 08:22:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/After-updating-a-widget-with-smart-content-via-API-the-old-value/m-p/781282#M63112</guid>
      <dc:creator>VOsos</dc:creator>
      <dc:date>2023-04-13T08:22:22Z</dc:date>
    </item>
  </channel>
</rss>

