/
How to enable Numbered Heading through REST API

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.

  1. Create a Confluence page without enabling the Numbered Heading macro.

  2. Copy the page ID as per the screenshot.

  3. Go to the Postman or any REST API app (based on your environment).

  4. 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
  5. Change the page ID based on the specific Confluence page.

  6. Add this code in the Body section.

    {"key": "nl_avisi_nh", "value": { "isEnabled": true } }
  7. Click Send.

  8. Refresh the Confluence page and verify that the Numbered Heading is enabled.

 

Related content

API
More like this
How to find the App License SEN / Entitlement number in Jira/Confluence Cloud
How to find the App License SEN / Entitlement number in Jira/Confluence Cloud
Read with this
Advanced usage
Advanced usage
More like this
How to add Numbered Headings macro to Confluence Blueprints
How to add Numbered Headings macro to Confluence Blueprints
More like this
Confluence blueprints
Confluence blueprints
More like this
Numbered Headings macro
Numbered Headings macro
More like this