API create page under another page using parent title

charleslcso September 7, 2024

Hello, from this page I can create a sub page under a parent page by specifying the parent page ID.

 

I need to use the parent’s page title instead of ID.

 

is this possible?

1 answer

0 votes
Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2024

Hello @charleslcso ,

For COnfluence Server/Data Center you can use this endpoint: https://developer.atlassian.com/server/confluence/rest/v900/api-group-content-resource/#api-rest-api-content-get - so you get page by SPACE_KEY and TITLE the same way as by ID.

http://{baseurl}/confluence/rest/api/content?spaceKey={KEY}&title={PAGE_TITLE}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.19.16
TAGS
AUG Leaders

Atlassian Community Events