Reputation: 130
I'm attempting to run a GET request against a BIM360 project's assets
endpoint. Would someone please advise if this is a bug or if I'm missing something?
Though my auth token is working for just about any other endpoint I've tried (hubs
, projects
, top folders
, and folder
), I keep getting a 403
response from the server:
{
"title": "Forbidden",
"detail": "Forbidden",
"errorCode": "GENERAL_ERROR",
"type": "https://developer.api.autodesk.com/bim360/assets/v1/error-codes/GENERAL_ERROR"
}
The request that produced this:
curl --request GET \
--url https://developer.api.autodesk.com/bim360/assets/v2/projects/{project_id}/assets \
--header 'Authorization: Bearer eyJ...'
My app is registered in the account admin page, and the account I'm auth'd with here is an admin. My app also has BIM360 and Construction Cloud selected:
Thank you.
Upvotes: 0
Views: 474
Reputation: 130
I found the issue - the project I was querying didn't have Assets
enabled within the Project Admin. Once I enabled Assets
, I was able to hit the endpoint successfully. If anyone else is looking at this issue in the future, follow these steps to enable Assets.
May I offer a couple of feedback requests for the AD team to consider?
Forbidden
code is a little misleading here. Responders to the question and I thought this was an issue with the token/user/etc when really it wasn't.Assets
should be enabled in the Before You Begin sections of the assets tutorials and/or the assets endpoint docs.Upvotes: 1