Get Navigation Tree of Shared With Me Folder
Get tree hierarchy of the root Team Folder.
Endpoint
http
GET /api/v1/teams/folders/{folder_id}/treeParameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
folder_id | string | yes | - |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sort | string | - | Define default sorting. Available attributes are created_at and name |
direction | string | - | Define default sorting. Available attributes are DESC and ASC |
Request example
sh
curl --location --request GET 'https://files.ro/api/v1/teams/folders/{folder_id}/tree?sort=created_at&direction=DESC' \
--header 'Authorization: Bearer {token}'Response
json
[
{
"name": "Team Folder",
"folders": [
{
"id": "folder_123",
"parent_id": null,
"name": "Team",
"team_folder": true,
"folders": []
}
],
"isMovable": true,
"isOpen": true
}
]json
{
"type": "error",
"message": "Access Denied"
}