-1

I'm using this call:

https://developer.api.autodesk.com/data/v1/projects/[ProjectID]/folders/[Project Files folder ID]/contents

and/or...

https://developer.api.autodesk.com/data/v1/projects/[ProjectID]/folders/[Project Files folder ID]/contents?filter[fileType]=rvt&page[limit]=200

The second one introduces a filter and also an attempt to deal with pagination. However, each attempt it only returns the subfolders immediately adjacent to the root "Project Files" folder. No files are returned, and no deeper subfolders, for that matter.

In general, I'm following this tutorial with some updates: https://forge.autodesk.com/en/docs/data/v2/tutorials/publish-model/#step-1-find-the-hub-id-for-the-bim-360-account

Scopes for the connection are (for the entire recipe): data:search data:create data:read data:write

Am I missing something?

Xero Phane
  • 88
  • 8

1 Answers1

0

Apparently, the below request URL doesn't work with fileType filter;

https://developer.api.autodesk.com/data/v1/projects/[ProjectID]/folders/[ProjectFilesfolderID]/contents?filter[fileType]=rvt&page[limit]=200

Replace the contents with search. Remember to use 3-Legged-Token for this endpoint;

https://developer.api.autodesk.com/data/v1/projects/[ProjectID]/folders/[ProjectFilesfolderID]/search?filter[fileType]=rvt

Arrotech
  • 109
  • 5