Update Template - Footer


#1

Hi, I'm trying to do a nightly update of some licensing info in the template footer of our webpages. I have the template id but can't find any examples of formatting to update a footer. Although, does updating the template affect pages that are using the pre-updated version of the template? If not, do you have any suggestions for me?

TY,
Mary-Rachael


#3

Hi, @mrmb.

Apologies for the delayed response.

Updating a page template with this endpoint will not affect live pages with older content — only new pages created from the updated template.

To update live content, you would have to use this CMS Page Publishing API endpoint.

My testing suggests that HTML hard-coded into the template cannot be retrieved with this endpoint, but content in HubL modules is accessible. For example:

widgets:{
  simple_section_title:{
    body:{
      redirectUrl:"https://app.hubspot.com/content/2676635/edit/6812629810",
      value:"This is the first section title. Does it update?"},
    child_css:{},
    css:{},
    id:"simple_section_title",
    label:"Enter text for this section title",
    name:"simple_section_title",
    order:0,
    smart_type:null,
    type:"text"}}}