How to enable Numbered Heading through REST API
This article explains how to enable Numbered Headings through REST API.
Instructions
Here are the steps to do so.
Create a Confluence page without enabling the Numbered Heading macro.
Copy the page ID as per the screenshot.
Go to the Postman or any REST API app (based on your environment).
Add this REST endpoint link to the POST section of the tool. Here example.atlassian.net is the URL and XXXXXXXX are the page id
https://example.atlassian.net/wiki/api/v2/pages/XXXXXXXX/properties
Change the page ID based on the specific Confluence page.
Add this code in the Body section.
{"key": "nl_avisi_nh", "value": { "isEnabled": true } }
Click Send.
Refresh the Confluence page and verify that the Numbered Heading is enabled.
Refer to the link for Atlassian latest Confluence Cloud REST API The Confluence Cloud REST API
Â