Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Autodesk Tandem REST API forbidden

I had a problem retrieving the documents and streams of my building model on Autodesk tandem using the tutorial rest sample below.(https://github.com/autodesk-tandem/tutorial-rest). The original guide on github mentioned that I need to add the Client ID to a service tab, but in this new updated Tandem, the service tab seem to be removed. In the code below, I use the ClientID and secret from the APS portal, and the account is also the owner of the building model on Tandem. But when I tried to to the GET request, I’ve always got { title: ‘Forbidden’, detail: ‘Forbidden’ } for the documents and streams. I’ve managed to print out the tokens, so there shouldn’t be a problem with my account, the scope is set to "data:read". I did tried the TestBed App for Javascript and REST and both are working fine with my account.
Please let me know which authentication step I’m missing here in this code.
Thank you

Figure 1
enter image description here

Figure 2
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

there was recently change in Tandem UI – use Add API Key to enter Client ID of your APS App. Also make sure to specify correct permission (i.e. Edit or Manage) to make sure that app can update facility data.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading