Forum Discussion
DJoshi2302
Jun 19, 2023Brass Contributor
How to add Topic Header and Show a Topic Header for SitePages using powerautomte/Rest API
Hi,
Can anyone guild me to add Topic Header and Show a Topic header on the Site Pages using Power Automate or Rest API
Thanks in Advance
- kalpeshvaghelaSteel Contributor
You can call below API to Set Topic Header
API URL: {Site URL}/_api/sitepages/pages({ItemID})/savepage
Headers:
if-match: *
Request Body:
{ "TopicHeader": "Topic Header Custom", }
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- DJoshi2302Brass Contributor
Hi kalpeshvaghela,
Thank you for your reply, I have tried the mentioned API in PowerAutomate.
Topic Header added for site page but Show text block above title toggle is still off, After calling mentioned API the page content is set to empty.
This API i am using in Approval Workflow for Site Pages.
Thank you