Search code examples
cqlwikiconfluenceconfluence-rest-api

Confluence Rest API - Return Pages sorted by position


I am using the Confluence API to retrieve children of a parent. The following API call returns the children of a Page with Id 123456, ordered by last modified date.

rest/api/content/search?cql=parent=123456+order+by+last-modified

However, I would like to have the results sorted by the position of the children. Any ideas?


Solution

  • The following API call, addresses the above question. It returns children for a parent based on their position. The answer was addressed in the Confluence community.

    rest/api/content/PARENTID/child?expand=page