Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to enable page numbering while page creation through REST API.

\uD83D\uDCD8 Instructions

Add the below payload in REST Call.

...

Numbered Headings through REST API.

Instructions

Here are the steps to do so.

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

    Image Added
  2. Copy the page ID as per the screenshot.

    Image Added
  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

    Code Block
    https://example.atlassian.net/wiki/api/v2/pages/XXXXXXXX/properties
  5. Change the page ID based on the specific Confluence page.

    Image Added
  6. Add this code in the Body section.

    Code Block
    {"key": "nl_avisi_nh",

...

  1. 
     

...

  1. "value": {
                

...

  1. "isEnabled": true

...

  1. 
        

...

  1. }
    

...

  1. }
  2. Click Send.

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

    Image Added
Info