I am using the Forge Data Management search API below to retrieve all .rvt files in BIM360 Docs.
The returned JSON for included.attributes.hidden is true when a file itself is manually deleted in the BIM360 docs site. When a parent folder is deleted, the file doesn't return as hidden: true, but hidden: false. This applies also to parent folders of folders.
To accurately determine if a file is deleted or not using this logic, the code would have to search up the parent folder tree from the file to find if any hidden: true exists. I would like to avoid this.
Two options could be:
- A better way to determine what is in the deleted items area? This might exist but I wasn't able to find this in the documentation
- The children of the folder be marked as hidden: true when the parent is hidden (and vice versa)?
Are either of these cases doable or currently available?
Sample returned Json:
"data": [{
],
"included": [{
{
"type": "items",
"id": "urn:adsk.wipprod:dm.lineage:***",
"attributes": {
"displayName": "r&b.rvt",
"hidden": true,
"reserved": false,
"extension": {
"type": "items:autodesk.bim360:C4RModel",
"version": "1.0.0",
"data": {}
}
},