Community moderators have prevented the ability to post new answers.
There's a few options, but either way, it seems like you'll have to go space by space.
You can use the json-rpc/confluenceservice-v2/getTopLevelPages call if you are OK with using JSON-RPC (POST ["spacekey"] as data).
Otherwise, to do it purely with the REST API, you can get all spaces via the following REST call:
and then call it with start+=25 until size != 25 (because it returns only 25 at a time). Make sure you keep track of each results[#].key (space key) and results[#].homepage.id (page ID of the homepage of that space).
Then you should call the following for each space:
where <spacekey> is the spacekey of the space and <homepageId> is the homepage page ID. If you want to exclude the homepage from the results (because the homepage also has no parents), then you can simply add the following on the end of the above REST call:
Tried posting ["spacekey"] and it seems like I'm not allowed to view that space, but that's okay. The other method should work perfectly! Is there a way that I can do a count of all the spaces to see how big of a dataset I'm working with (I don't have access to the server or any commands that require restrictive admin rights)?
Thanks so much!
It's no secret that the tech sector has built (and is building) processes and systems that exclude vulnerable users by designing “nudges” that influence users, users who end up making privacy c...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events