For the search interface, Search for content - API Reference - Box Developer Documentation
I am wondering how to know the folder layers from the response. I see there is a property named Path_Collection, which seems has all folder names, but the sequence_id property is always 0 or null. How can we know which is the direct parent folder, which is the second level? Can we relay on the item sequence of the collection?
For example, for below response, can we consider the folder path is All Files/B/A ?
"path_collection": {
"total_count": 4,
"entries":
{
"type": "folder",
"id": "0",
"sequence_id": null,
"etag": null,
"name": "All Files"
},
{
"type": "folder",
"id": "230155851619",
"sequence_id": "0",
"etag": "0",
"name": "B"
},
{
"type": "folder",
"id": "236064834114",
"sequence_id": "0",
"etag": "0",
"name": "B"
},
{
"type": "folder",
"id": "269498876496",
"sequence_id": "0",
"etag": "0",
"name": "A"
}
]
}