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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events