Use API to update global template settings

I need update HubL variables so they can be visible to all pages. From HS support I know that “In order to ensure all templates will have these variables I have to add them in /settings/#######/website/pages/subdomain.domain.com/page-templates”.

The question is: Can I update this “default settings” in the “Site header HTML” via API?

And one of-topic qustion: I changed some HubL variables from the web interface and saved. The pages didnt reflect this change. Any ideas why?

Hey @rikotech,

Currently, the HubSpot API doesn’t support updating the Site header HTML settings. Your team would have to update these settings on HubSpot UI.

For the second question, could you share with me more details so that I can dig into this on my end?

1. The HubSpot portal ID in question

2. The web page link

3. The HubL variable that you changed

4. What is the expected behavior and what’s the current behavior