Autodesk Upload File 403 - Stack Overflow

admin2025-04-29  1

/:project_id/storage

I encountered a 403 issue; even my scope is data:read, data:write, bucket:read, and bucket:create. I also double-checked the project ID and folder ID, why still 403 ? this is sample response

Request failed: Client error: POST .cGVyc29uYWw6d2lwMWZxYWUyOWNlZGY4I0QyMDE2MDQxODM5NDM2NzM/storage resulted in a 403 Forbidden response: {"jsonapi":{"version":"1.0"},"errors":[{"id":"95c85dbc-7a14-4ff1-8efb-f3ffa7449228","status":"403","code":"USER_NOT_AUTH (truncated...)

but I can retrieve the file via API. The only issue is uploading the file in Cost Management > Files > Folder. can you help me this documentation is 404

https://developer.api.autodesk.com/data/v1/projects/:project_id/storage

I encountered a 403 issue; even my scope is data:read, data:write, bucket:read, and bucket:create. I also double-checked the project ID and folder ID, why still 403 ? this is sample response

Request failed: Client error: POST https://developer.api.autodesk.com/data/v1/projects/a.cGVyc29uYWw6d2lwMWZxYWUyOWNlZGY4I0QyMDE2MDQxODM5NDM2NzM/storage resulted in a 403 Forbidden response: {"jsonapi":{"version":"1.0"},"errors":[{"id":"95c85dbc-7a14-4ff1-8efb-f3ffa7449228","status":"403","code":"USER_NOT_AUTH (truncated...)

but I can retrieve the file via API. The only issue is uploading the file in Cost Management > Files > Folder. can you help me this documentation is 404

https://aps.autodesk.com/en/docs/bim360/v1/tutorials/document-management/upload-document

Share Improve this question edited Jan 7 at 9:02 VLAZ 29.2k9 gold badges63 silver badges85 bronze badges asked Jan 7 at 2:33 John Patrick AnonuevoJohn Patrick Anonuevo 1 1
  • Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Jan 7 at 20:05
Add a comment  | 

1 Answer 1

Reset to default 0

Are you looking for the POST projects/:project_id/storage endpoint, which creates a storage location in the OSS where files can be uploaded to?

I'm guessing they may have retired the BIM360 documentation, this is the one I've been testing with: https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-storage-POST/.

I recall running into either the same or a similar error when I tried to use the root folder ID. Do you know if your folder ID is the root folder or a sub folder?

转载请注明原文地址:http://anycun.com/QandA/1745934584a91331.html