-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Core - Content REST APIs
-
None
-
0
-
4
Problem Definition
At the moment, there is no method available to get all children pages from a parent page, including all levels of the tree. Only direct children are returned from the existing methods.
Suggested Solution
Implement the same endpoints that are available on Confluence Cloud:
Both requests are available on server instances already. However, the first one only returns attachments and comments. The second one returns the following error if accessed:
- /rest/api/content/<ID>/descendant/page
{ "statusCode": 501, "data": { "authorized": false, "valid": true, "allowedInReadOnlyMode": true, "errors": [], "successful": false }, "message": "Page children is currently only supported for direct children", "reason": "Not Implemented" }
Why this is important
Making those methods available would greatly reduce the effort to build the full page tree using Rest API.
Workaround
At the moment, the only option is to recursively navigate through the tree, one level at a time.