I'm attempting to access my Hubs through the data management API, for use with Viewer, and also to read/write BIM360 issues via Issues API. However, the GET request to https://developer.api.autodesk.com/project/v1/hubs is not returning all of the hubs that I have expected it to.
I originally thought there might be something outdated in the forge-apis npm module I've been installing in Node-js, so I tried using Postman to send a GET request directly to https://developer.api.autodesk.com/project/v1/hubs, using a 3-legged OAuth token, however this returns the same hubs.
The response includes hubs from the old BIM360 Teams, but seems to be missing hubs from BIM360 Design. The only BIM360 Design hub that appears is the one I am an admin of.
For reference, my data-management and authentication code essentially the same as the one available here: http://learnforge.autodesk.io/#/tutorials/viewhubmodels
The result to the GET request is as follows:
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": {
"href": "https://developer.api.autodesk.com/project/v1/hubs"
}
},
"data": [
{
"type": "hubs",
"id": "a.YnVxxx",
"attributes": {
"name": "xxx",
"extension": {
"type": "hubs:autodesk.core:Hub",
"version": "1.0",
"schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/hubs:autodesk.core:Hub-1.0"
},
"data": {}
}
},
"links": {
"self": {
"href": "https://developer.api.autodesk.com/project/v1/hubs/a.YnVxxx"
}
},
"relationships": {
"projects": {
"links": {
"related": {
"href": "https://developer.api.autodesk.com/project/v1/hubs/a.YnVzxxx/projects"
}
}
}
}
},
3 of these and one of these:
"type": "hubs",
"id": "b.211xxx",
"attributes": {
"name": "xxx",
"extension": {
"type": "hubs:autodesk.bim360:Account",
"version": "1.0",
"schema": {
"href": "https://developer.api.autodesk.com/schema/v1/versions/hubs:autodesk.bim360:Account-1.0"
},
"data": {}
}
},
"links": {
"self": {
"href": "https://developer.api.autodesk.com/project/v1/hubs/b.211xxx"
}
},
"relationships": {
"projects": {
"links": {
"related": {
"href": "https://developer.api.autodesk.com/project/v1/hubs/b.211xxx/projects"
}
}
}
}
}
],
followed by this warning:
"meta": {
"warnings": [
{
"Id": null,
"HttpStatusCode": "403",
"ErrorCode": "BIM360DM_ERROR",
"Title": "Unable to get hubs from BIM360DM EMEA.",
"Detail": "You don't have permission to access this API",
"AboutLink": null,
"Source": [],
"meta": []
}
]
}
}
However, https://forge.autodesk.com/blog/bim-360-docs-api-changes-access-data-european-data-center seems to suggest that data-management api should be unaffected by server locations being US or EMEA, so I don't understand the warning.
Is it possible that BIM360 Design hubs that do not have admin-permissions are not accessible via the data-management API?
The app has also been provisioned for BIM360 API, but I believe this will only affect the hub that I am admin of (can I get confirmation on this, as I also intend to at least view issues in non-admin hubs in future, preferably write issues).