Hi,
I recently got developer account access for BIM Docs and have been using it for some integrations
Everything seems to be working fine but I am unable to upload the documents to default bucket with an error code of 403 ‘Unauthorized’
I have made sure there is no error at code level or scope etc. I have also tested it by using custom logic as well as C# quick start forge client and both give me back same response.
I want to confirm whether this is because of limitations on free docs account? As I was also unable to create multiple projects at docs BIM and later on found out that it only allows 1 project administration in free account
Please let me know how to solve API permission issue for uploading file and again its not issue with scope or other code error.
Hi,
I recently got developer account access for BIM Docs and have been using it for some integrations
Everything seems to be working fine but I am unable to upload the documents to default bucket with an error code of 403 ‘Unauthorized’
I have made sure there is no error at code level or scope etc. I have also tested it by using custom logic as well as C# quick start forge client and both give me back same response.
I want to confirm whether this is because of limitations on free docs account? As I was also unable to create multiple projects at docs BIM and later on found out that it only allows 1 project administration in free account
Please let me know how to solve API permission issue for uploading file and again its not issue with scope or other code error.
Hi Faisal,
Do you have API access activated for Docs?
https://fieldofviewblog.wordpress.com/2017/08/31/bim-360-docs-account-for-development/
https://fieldofviewblog.wordpress.com/2017/01/19/bim-360-activating-api-access-to-docs/
Without it, you cannot access Docs with API.
Could you make sure about it to start with?
Then, here is some pointer about uploading:
https://fieldofviewblog.wordpress.com/2017/02/07/bim-360-docs-api-update/
Hi Faisal,
Do you have API access activated for Docs?
https://fieldofviewblog.wordpress.com/2017/08/31/bim-360-docs-account-for-development/
https://fieldofviewblog.wordpress.com/2017/01/19/bim-360-activating-api-access-to-docs/
Without it, you cannot access Docs with API.
Could you make sure about it to start with?
Then, here is some pointer about uploading:
https://fieldofviewblog.wordpress.com/2017/02/07/bim-360-docs-api-update/
Hi,
I do have docs API Access for docs via forge application
And i am able to call for documents etc. and also can create storage object as described in upload documents.
The issue is i created the storage object and uploaded a file and it gave me back success response but i was not able to view it on my BIM 360 docs account.
So i copied the storage id of another document that was already visible under my account and tried to upload file to that storage instead of creating new one but that returned a 403 error.
I guess we can not update default project buckets such as Project Files folder via API?
If so where can i view my uploaded documents taht are uploaded to new bucket?
thanks
Hi,
I do have docs API Access for docs via forge application
And i am able to call for documents etc. and also can create storage object as described in upload documents.
The issue is i created the storage object and uploaded a file and it gave me back success response but i was not able to view it on my BIM 360 docs account.
So i copied the storage id of another document that was already visible under my account and tried to upload file to that storage instead of creating new one but that returned a 403 error.
I guess we can not update default project buckets such as Project Files folder via API?
If so where can i view my uploaded documents taht are uploaded to new bucket?
thanks
Hi Faisal,
I'm not quite sure what you are trying to do. If you are uploading a file to Docs, you don't need to create your own bucket. You will be uploading within Autodesk's product bucket, i.e., bucket key is wip.dm.prod
Did you follow the instruction I pointed earlier? There are subtle difference you may want to be aware.
https://fieldofviewblog.wordpress.com/2017/02/07/bim-360-docs-api-update/
https://developer.autodesk.com/en/docs/data/v2/tutorials/upload-file/
Hi Faisal,
I'm not quite sure what you are trying to do. If you are uploading a file to Docs, you don't need to create your own bucket. You will be uploading within Autodesk's product bucket, i.e., bucket key is wip.dm.prod
Did you follow the instruction I pointed earlier? There are subtle difference you may want to be aware.
https://fieldofviewblog.wordpress.com/2017/02/07/bim-360-docs-api-update/
https://developer.autodesk.com/en/docs/data/v2/tutorials/upload-file/
Can't find what you're looking for? Ask the community or share your knowledge.