Get content children
GET {{baseUrl}}/api/content/:id/child?expand=<string>&expand=<string>&parentVersion=0
Returns a map of the direct children of a piece of content. A piece of content has different types of child content, depending on its type. These are the default parent-child content type relationships:
page
: child content ispage
,comment
,attachment
blogpost
: child content iscomment
,attachment
attachment
: child content iscomment
comment
: child content isattachment
Apps can override these default relationships. Apps can also introduce new content types that create new parent-child content relationships.
Note, the map will always include all child content types that are valid for the content. However, if the content has no instances of a child content type, the map will contain an empty array for that child content type.
Permissions required: 'View' permission for the space, and permission to view the content if it is a page.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | A multi-value parameter indicating which properties of the children to expand, where: |
-
attachment
returns all attachments for the content. -
comments
returns all comments for the content. -
page
returns all child pages of the content. | |expand
| string | | A multi-value parameter indicating which properties of the children to expand, where: -
attachment
returns all attachments for the content. -
comments
returns all comments for the content. -
page
returns all child pages of the content. | |parentVersion
| number | | The version of the parent content to retrieve children for. Currently, this only works for the latest version. |
RESPONSES
status: OK
{"_expandable":{"attachment":"in ut","comment":"dolor","page":"eu exercitation"},"_links":{},"attachment":{"results":[{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"},{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"}],"start":-75729038,"limit":34726306,"size":18934279,"_links":{}},"comment":{"results":[{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"},{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"}],"start":37994470,"limit":2587712,"size":-24049554,"_links":{}},"page":{"results":[{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"},{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"}],"start":66843073,"limit":57682154,"size":-4004438,"_links":{}}}