curl -X GET 'https://api.example.com/resource-hierarchy/ancestors/resource_doc_456' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "resource_folder_123",
"resourceTypeId": "rtype_folder",
"displayName": "Engineering Docs",
"cascade": "inherit"
},
{
"id": "resource_workspace_root",
"resourceTypeId": "rtype_workspace",
"displayName": "Workspace",
"cascade": "inherit"
}
]
Get all ancestor resources in the hierarchy
curl -X GET 'https://api.example.com/resource-hierarchy/ancestors/resource_doc_456' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "resource_folder_123",
"resourceTypeId": "rtype_folder",
"displayName": "Engineering Docs",
"cascade": "inherit"
},
{
"id": "resource_workspace_root",
"resourceTypeId": "rtype_workspace",
"displayName": "Workspace",
"cascade": "inherit"
}
]
cascade: inheritcurl -X GET 'https://api.example.com/resource-hierarchy/ancestors/resource_doc_456' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "resource_folder_123",
"resourceTypeId": "rtype_folder",
"displayName": "Engineering Docs",
"cascade": "inherit"
},
{
"id": "resource_workspace_root",
"resourceTypeId": "rtype_workspace",
"displayName": "Workspace",
"cascade": "inherit"
}
]
Was this page helpful?