I've been using the example to test this out...and a new page is indeed created. But it is not a child of the homepage - it sits outside that tree of pages as a brand new root page in the space.
How can I create a page under any particular page in a space?
Hello @Martin Dowie
I'm not very familiar with the Confluence API. However I found this article:
https://community.atlassian.com/t5/Jira-articles/Automating-the-creation-of-a-Confluence-page-linked-to-a-Jira/ba-p/1760738
In the comments there is mention of an "ancestors" attribute that can be used to set the parent page for the page you are creating. And that is part of the request body described in the API documentation.
https://developer.atlassian.com/server/confluence/rest/v1000/api-group-content-resource/#api-rest-api-content-post
Brilliant, that 100% worked - thank you
It looks like you're new here. Sign in or register to get started.