The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Order of ancestors in REST API response - Confluence Server & Data Center

admin@M365x96699791.onmicrosoft.com
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2023

Experimentally, I am finding that ancestors fetched using content API (/rest/api/content?expand=ancestors) do follow below mentioned order.
The first entry in the page's ancestors' array is its top-most ancestor, and the last entry is the direct parent. 

But the API does not document the order of items in the ancestors' array, so I don't know whether I should rely on the order of ancestors.


Can you please confirm that ancestors order is always guaranteed to follow order I mentioned above. If yes, it would be nice if the API documentation can be updated to make that clear.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events