API
If you are creating pages with the Confluence API and you want to turn on numbering, you can use the numbering API.
put
https://localhost:1990/confluence
/rest/numberedheadings/1.0/page-configuration/:content-id
Configure page numbering
The request payload that you should send for this request is as documented in Page properties.

Curl example

1
curl 'https://localhost:1990/confluence/rest/numberedheadings/1.0/page-configuration/360482'
2
-X 'PUT'
3
-H 'Content-Type: application/json'
4
--data-binary '{"isEnabled":true,"numberFormatField":"decimal","startingNumberField":"3","startingHeadingField":"H1","skipHeadingField":"","customFormatFieldH1":"","customFormatFieldH2":"","customFormatFieldH3":"","customFormatFieldH4":"","customFormatFieldH5":"","customFormatFieldH6":""}'
Copied!
put
https://localhost:1990/confluence
/rest/numberedheadings/1.0/space-configuration/:spacekey
Configure space numbering
The request payload that you should send for this request is as documented in Page properties.

Curl example

1
curl 'http://localhost:1990/confluence/rest/numberedheadings/1.0/space-configuration/ds' \
2
-X 'PUT' \
3
-H 'Content-Type: application/json' \
4
--data-binary '{"isEnabled":true,"numberFormatField":"decimal","startingNumberField":"2","startingHeadingField":"H2","skipHeadingField":"","customFormatFieldH1":"","customFormatFieldH2":"","customFormatFieldH3":"","customFormatFieldH4":"","customFormatFieldH5":"","customFormatFieldH6":""}'
Copied!