尝试在Box中创建到文件夹的共享链接时访问被拒绝的错误消息 [英] Access denied error message when trying to create a shared link to a folder in Box

查看:160
本文介绍了尝试在Box中创建到文件夹的共享链接时访问被拒绝的错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,从我的>上一个问题开始有关添加协作者的权限,现在尝试使用API​​在Box中创建到文件夹的共享链接时,我遇到了其他权限问题.

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.

请确认一下,我已经在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"}

这是我发送的POST数据:

Here is the POST data I am sending:

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

这是我发送给的URL:

Here is the URL that I am sending it to:

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

文件夹ID用于我使用API​​创建的文件夹,并且还可以将协作者添加到该文件夹​​中,所以到目前为止,我拥有执行这些操作的所有正确权限.

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.

推荐答案

对于CreateSharedLink方法,HTTP操作为PUT.如果使用POST方法,它将返回403 sharedlink access_denied_insufficient_permissions错误. -常春藤

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

这篇关于尝试在Box中创建到文件夹的共享链接时访问被拒绝的错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆