With the Confluence v1 REST API it was possible to get child contents via the content/<ID>/child/<TYPE>
endpoints, where TYPE
can be page, whiteboard, database, etc. The ID
also can refer to any content type, e.g. a Confluence database, to get its children.
To summarize, the v1 endpoint allows to get children of any content type from parents of any content type.
Now that the content/<ID>/child
endpoint is deprecated, how to achieve the same using the v2 REST API?
There is a v2 endpoint to get child pages of pages: pages/<ID>/children
. But what about the other content types? There is no databases/<ID>/children
or whiteboards/<ID>/children
, although those can have children as well.
Furthermore, it seems that pages/<ID>/children
really just returns child pages, but not other child content types.
Is this how it’s supposed to work? How to get the children (of any type) of a content ID (of any type that can have children)?