• Créditos da HubSpot: Desbloqueie ferramentas poderosas para o crescimento

    Dúvidas?

APIs & Integrations

VOsos
Membro

After updating a widget with smart content via API, the old value is displayed

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 (https://developers.hubspot.com/docs/api/cms/pages). 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

ezgif-1-b85f9db810.gif

0 Avaliação positiva
3 Respostas 3
Jaycee_Lewis
Gerente da Comunidade
Gerente da Comunidade

After updating a widget with smart content via API, the old value is displayed

Hi, @VOsos 👋 Thanks for reaching out! I'd like to invite some of our community members to the conversation — hey @Phil_Vallender @SJaeger @Gonzalo, do you have any suggestions or thoughts on how you like to troubleshoot challenges like this?

 

Thank you for taking a look! — Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




SJaeger
Colaborador(a)

After updating a widget with smart content via API, the old value is displayed

hello,

 

i think its not published. sometimes you have to unpublish/publish and clear cdn cache.

Nothing is impossible
0 Avaliação positiva
VOsos
Membro

After updating a widget with smart content via API, the old value is displayed

Hello @SJaeger . unfortunately unpublish and then publish did not help to solve the problem.

0 Avaliação positiva