Hi all!
I´m trying to retrieve the storage content of all descendants (3 levels) of a page.
If I use this URL I get alls descendants up to level 3 but the body content is shown only for the last level.
/rest/api/content/1512637511/child?limit=999&expand=page.children.page.children.page.children.page.body.storage
What would be the correct URL to get the body content of all pages?
Thanks a lot
Dear @suedti1 ,
you can write your request recursively - its a tree.
Start with the first top level page an get all its children pages:
GET /rest/api/content/{topLevelPageId}/child/page
now you have all the children ids for getting the whole page in details:
GET /rest/api/content/{childId}
for each child you repeat these steps until you reached the desired depth.
So long
Thomas
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.