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 is page, comment, attachment
  • blogpost: child content is comment, attachment
  • attachment: child content is comment
  • comment: child content is attachment

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

KeyDatatypeRequiredDescription
expandstringA 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

{&quot;_expandable&quot;:{&quot;attachment&quot;:&quot;in ut&quot;,&quot;comment&quot;:&quot;dolor&quot;,&quot;page&quot;:&quot;eu exercitation&quot;},&quot;_links&quot;:{},&quot;attachment&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;}],&quot;start&quot;:-75729038,&quot;limit&quot;:34726306,&quot;size&quot;:18934279,&quot;_links&quot;:{}},&quot;comment&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;}],&quot;start&quot;:37994470,&quot;limit&quot;:2587712,&quot;size&quot;:-24049554,&quot;_links&quot;:{}},&quot;page&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;}],&quot;start&quot;:66843073,&quot;limit&quot;:57682154,&quot;size&quot;:-4004438,&quot;_links&quot;:{}}}