Implement "/<ID>/descendant/page" Rest API endpoint on Confluence server

XMLWordPrintable

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Bernardo Andreeti
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: