What is changing?
We will be limiting the number of sub-expansions allowed in the expand
query parameter of the Get Content by ID API (/wiki/rest/api/content/).
The maximum sub-expansions will be set to eight (8). That means that API calls with an expand query parameter with more than 8 sub-expansions will receive an error. Sub expansions are expansions beyond the first one. For example,
expand=children.page.children.page.children.page.children
has 6 sub-expansions and is OK under the new limit, but
expand=children.page.children.page.children.page.children.page.children.page.children
has 10 sub-expansions and will return an error when executed.
Why is it changing?
Complex and nested expand query parameters create performance issues, which can affect the whole instance.
What do I need to do?
Use the Get content descendants API (/rest/api/content/{id}/descendant) instead to get all the child pages.
Timing
This change will be rolled out by the end of July, 2021 .