1

When I test my code with a BIM360 project, I am able to get the BIM360 folder contents:

https://developer.api.autodesk.com/data/v1/projects/b.39cc5e50-e634-44ab-905b-0a2fab5299c9/folders/urn:adsk.wipprod:fs.folder:co.dNkJp3jzSSKOACX4DCgx3A/contents,

However, when I test with an ACC project, I get a 400 project id incorrect error.

https://developer.api.autodesk.com/data/v1/projects/4e97ffae-b501-4ebd-8747-98206589e716/folders/urn:adsk.wipprod:fs.folder:co.szzRe5O9Q12iXBKOtKlmZA/contents,

How is the project id incorrect?

{"code":400,"message":"400 Bad Request","body":"{\"jsonapi\":{\"version\":\"1.0\"},\"errors\":[{\"id\":\"a000cfdf-008e-4095-87ae-46f6adb1e9a4\",\"status\":\"400\",\"code\":\"BAD_INPUT\",\"detail\":\"Invalid project id.\"}]}","headers":{"server":"nginx","date":"Wed, 24 Sep 2025 15:51:00 GMT","content_type":"application/vnd.api+json","content_length":"151","connection":"keep-alive","x_request_id":"686ada52-a78f-4867-82af-610c4679a8bf","strict_transport_security":"max-age=31536000; includeSubDomains; preload","x_frame_options":"SAMEORIGIN"}} at line: 5831

1 Answer 1

0

I needed to include the "b." prefix in the Project ID, regardless that it was an ACC project.

https://developer.api.autodesk.com/data/v1/projects/b.4e97ffae-b501-4ebd-8747-98206589e716/folders/urn:adsk.wipprod:fs.folder:co.szzRe5O9Q12iXBKOtKlmZA/contents
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.