I'm trying to download documents from BIM 360 Docs. If I want to download a file with the type "type": "items:autodesk.bim360:File"
I just need to get the bucketID and objectID (/projects/<projectID>/items/<itemID>
) and call buckets/<bucketID>/objects/<ObjectID>
. (I used this tutorial)
But how do I download a file with the type "type": "items:autodesk.bim360:Document"
?
First, I get the version of the document /projects/<projectID>/items/<itemID>/versions
. After that I call projects/<ProjectID>/versions/<versionID>/downloadFormats
but it returns an empty JSON. The call projects/<ProjectID>/versions/<versionID>/downloads
returns a 400 Bad Input. Whats the right way to get the bucket & objectID from a "document"? The way from the tutorial doesn't work because there is no "storage" tag in the JSON (example).