I tried to update the data of a widget that has Smart rules enabled. I tried to update the data through the legacy API (https://legacydocs.hubspot.com/docs/methods/pages/put_pages_page_id) as well as through the new version of the API (Accounts Dashboard | HubSpot). The data that was sent with the update request looks like this:
{ "widgets": { "dnd_area_main_banner-module-4": { "body": { "html": "test (Default)" }, "smart_objects": [ { "criterion_id": 109961314221, "body": { "html": "test (Desktop)" } }, { "criterion_id": 109961314222, "body": { "html": "test (Mobile)" } } ] } }}
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.
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?
Or is it some kind of implementation error on the part of the Hubspot, and if so, maybe there are some workarounds?
Note: widget type is Rich Text
