getPageAncestors
Get all ancestors of page
GET /pages/{id}/ancestors HTTP/1.1Parameters
{
"id": {
"description": "The ID of the page.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"limit": {
"description": "Maximum number of pages per result to return. If more results exist, call this endpoint with the highest ancestor's ID to fetch the next set of results.",
"required": false,
"location": "query",
"type": "integer",
"format": "int32"
}
}Response Schema
{
"title": "MultiEntityResult<Ancestor>",
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "ID of the ancestor"
},
"type": {
"enum": [
"page",
"whiteboard",
"database",
"embed",
"folder"
],
"type": "string",
"description": "The type of ancestor."
}
}
}
},
"_links": {
"type": "object",
"properties": {
"next": {
"type": "string",
"description": "Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter.\nThis property will not be present if there is no additional data available."
},
"base": {
"type": "string",
"description": "Base url of the Confluence site."
}
}
}
}
}