Access denied error message when trying to create a shared link to a folder in Box

限于喜欢 提交于 2019-12-10 21:13:35

问题


So following on from my previous question around permissions to add collaborators, I am now having further permissions issues when trying to create a shared link to a folder in Box using the API.

So to confirm, I have the "Manage an enterprise" scope now enabled on the API account.

Here is the error message I am getting back:

{"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"2137493926531843e3c61af"}

Here is the POST data I am sending:

{"shared_link":{"access":"collaborators"}}

Here is the URL that I am sending it to:

https://api.box.com/2.0/folders/1561835651

The folder Id is for a folder I have created using the API, and I am also able to add collaborators to that folder OK, so up until this point, I have all the correct permissions to perform these operations.

So my question is, what else should I be doing? I cannot see any more options against the account to suggest I need more permissions, and the documentation is not clear on what else I need to do to be able to perform this operation.


回答1:


For CreateSharedLink method, the HTTP action is PUT. If use POST method, it will return 403 sharedlink access_denied_insufficient_permissions error. -Ivy



来源:https://stackoverflow.com/questions/22220942/access-denied-error-message-when-trying-to-create-a-shared-link-to-a-folder-in-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!