Skip to main content
Question

Can you update Title/Subtitle/Button text in Custom Content Box via API? (or CSS as alternative)

  • March 11, 2025
  • 1 reply
  • 25 views

Adam Ballhaussen
Guide III
Forum|alt.badge.img+7

Hey Community!

 

Question for all of the API experts out there… Is there a way to update Title/Subtitle/Button text in Custom Content Boxes via API? I’ve explored the API Browser and haven’t been able to find anything promising but hoping I’m missing something. 

 

If not possible via API, does anyone have any ideas for how to do this effectively via CSS? Theoretically, would there be a way to “override” any of these text elements via custom CSS? (I recognize the maintenance risks this might impose)

1 reply

brandonbillings
Helper II
Forum|alt.badge.img+1

I did a browser inspect while making a a change toa button on a page. It’s using a PUT to URL/pages/v1/pages/{{page_id}}

in my payload, the rows / columns elements have a “widgets”, which has “settings”:

{
"backgroundType": "color",
"backgroundColor": "#0064a8",
"showContentTitle": false,
"showContentSubtitle": true,
"contentSubtitle": "View your transcript and download certificates",
"titleAndSubtitleColor": "#ffffff",
"showButton": true,
"text": "My Course History ",
"destinationUrl": "https://whatever.org",
"openInANewTabWindow": false,
"buttonTextColor": "#ffffff",
"buttonBackgroundColor": "#e67e22",
"contentHorizontalAlignment": "left",
"contentVerticalAlignment": "topAndBottom",
"minHeightPx": null,
"assignToAll": true,
"translationsLocalizableFields": {
"title": {
"en": null,
"fr": null,
"de": null,
"es-419": null
},
"contentSubtitle": {
"en": "View your transcript and download certificates",
"fr": null,
"de": null,
"es-419": null
},
"text": {
"en": "I'm changing this button as a test",
"fr": null,
"de": null,
"es-419": null
}
}
}