This article explains how to enable page numbering while page creation through REST API.
Instructions
Follow the below steps.
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.
Code Block https://example.atlassian.net/wiki/api/v2/pages/XXXXXXXX/properties
Change the page ID based on the specific Confluence page.
a
a
- a
Add
...
this code in the Body section.
Code Block
...
{
...
"key": "nl_avisi_nh",
...
...
"value": {
...
"isEnabled": true
...
...
}
...
}
Click Send.
Refresh the Confluence page and see the Numbered Heading is enabled.
Info |
---|
Refer to this link for Atlassian latest Confluence Cloud REST API https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties/#api-group-content-properties |