Autodesk Forge 403 When Trying to Retrieve Issues - autodesk-forge

I'm following the Issue Retrieval tutorial: https://forge.autodesk.com/en/docs/bim360/v1/tutorials/retrieve-issues/
After getting a token I'm able to retrieve my hubs, then my projects, but when it comes time to retrieve issues in a project I am getting a 403 forbidden.
Trying to retrieve issues with the following URL:
https://developer.api.autodesk.com/issues/v1/containers/[issue_container_id]/issues
where [issue_container_id] is retrieved from data[0].relationships.issues.data.id from the https://developer.api.autodesk.com/project/v1/hubs/[hub_id]/projects response
My auth token scope is data:read and I've even tried with data:read and data:write since I was initially trying to write an issue, but also got a 403.
My Forge app has access to BIM 360 API, Data Management API, and WebHook API.
My BIM 360 integration gives the Forge app acess to BIM 360 Account Admin and Document management.

According to our engineering team, BIM360 Issue APIs support three-legged token only currently. Apologizing for the confusion, the tutorial will be updated soon.

Related

What's the difference between admin.b360 and developer.api Autodesk's services?

I'm trying to implement Forge API endpoints wrapper and I faced with situation, where I can create user via this endpoint https://developer.api.autodesk.com/hq/v1/accounts/:account_id/users but I can't find endpoint for removing users (not inactivation). I found that for user deleting WebUI of BIM360 actually using https://admin.b360.eu.autodesk.com/users/:user_id/destroy endpoint, but I can't find description of this endpoint anywhere. What's the difference between developer's API and admon.b360 stuff?
I cannot find that endpoint on our API documentation. If you only see it under the dev tools, it could be an internal endpoint of the BIM360 services that can only be accessed by BIM360 itself.
Commonly, user-accessible BIM360 APIs are exposed under the base URL https://developer.api.autodesk.com/. If you don't see it listed on the Forge BIM360 API documentation, it means the function you're looking for is not available at this moment, unfortunately.
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/

Forge ARKit Get Unity Status 501 Not Implemented

I was trying the Forge ARKit API (https://app.swaggerhub.com/apis/cyrillef/forge-ar_kit/2.0.0#/info) and I was able to load a revit model in Unity through the asset (http://forgetoolkit.com/#/unityPackage). Then I saw that the API has an url to download a model as UnityPackage (https://app.swaggerhub.com/apis/cyrillef/forge-ar_kit/2.0.0#/ARKit/get_unity), but unfortunately I get a 501 status Not Implemented.
I'm doing a GET request to "https://developer-api-beta.autodesk.io/modelderivative/v2/arkit/{{urn}}/unity" with the Authorization token and the same urn base64url I used for the other urls.

Error in Querying BIM 360 project attribute

I'm currently using an AWS lambda function to automate the creation of a BIM 360 project by using multiple BIM 360 API endpoints.
It's been working fine, but I've just noticed that it stopped working, failing to access GET projects/:project_id endpoint. My code accesses each BIM 360 project's job_number attribute to filter duplicated projects by using job_number. And the code is failing at getting the response of the GET projects/:project_id request.
Has there been any change in the API recently? Thank you in advance.
from the latest reply, it looks you hit rate limit. If am correct, the response error code is 429. Each category API has restriction of rate limit. e.g. This is rate limit of Data Management API
https://forge.autodesk.com/en/docs/data/v2/developers_guide/rate-limiting/dm-rate-limits/
And this is BIM360 API:
https://forge.autodesk.com/en/docs/bim360/v1/overview/rate-limits/
So, you will need to set some delays of each call to meet the rate, or use some async management methods such as async-pool in Node.js to control the calls rate or every minute.

AutoDesk API for List of Fusion 360 Files

Using the Autodesk Forge Auth API, I can get a bearer token for my app and I can get the ID of the user. I want to get a list of Fusion 360 files that the user owns. How can I do this? It seems like it would be part of the Data Management API, but I can't find it.
I use the forge api for data management to ask for the hubs for a user. I get a response that has a 200 status, but there is nothing in the response - no data and nothing like what is in the example.
Any ideals as to how to get those files?
If the GET Hubs response is empty, most likely that user don't have any hub. Is there any warning or error on the response body?
And this tutorial should help you get started, or try this live sample (source in .NET)

Can we access custom metadata attributes from BIM 360 docs using Forge API?

Using the forge API, we would like to query models by custom fields created in bim 360 docs (see screenshot). Could the API somehow provide us this possibility? We have investigated the data management api but can't find any request that handle custom attributes.
Unfortunately, Attribute API is not available for BIM 360 Docs yet, so this is not possible to obtain attribute data by API now. Apologies for any inconvenience caused. However, you can keep eyes on here for recent updates:
https://forums.autodesk.com/t5/bim-360-docs-forum/new-bim-360-release-notes-and-bim-360-roadmap/td-p/7753472
https://forums.autodesk.com/t5/bim-360-docs-forum/latest-updates-new-knowledge-network-articles-bim-360-docs/td-p/7738068