curl --request GET \
--url https://api.tiro.ooo/v1/external/teams/me/folders/tree \
--header 'Authorization: Bearer <token>'{
"content": [
{
"id": "folder-team-root",
"title": "Team Root",
"parentId": null,
"depth": 0,
"isAccessible": true,
"children": [
{
"id": "folder-team-child",
"title": "Team Sub Folder",
"parentId": "folder-team-root",
"depth": 1,
"isAccessible": true,
"children": []
}
]
}
]
}Retrieve team folder hierarchy as a tree structure
curl --request GET \
--url https://api.tiro.ooo/v1/external/teams/me/folders/tree \
--header 'Authorization: Bearer <token>'{
"content": [
{
"id": "folder-team-root",
"title": "Team Root",
"parentId": null,
"depth": 0,
"isAccessible": true,
"children": [
{
"id": "folder-team-child",
"title": "Team Sub Folder",
"parentId": "folder-team-root",
"depth": 1,
"isAccessible": true,
"children": []
}
]
}
]
}