id为123的用户没有id为123项目的正确更新权限



当我尝试编辑项目时,我收到了这个错误,我已经尝试使用用户名和密码验证为用户,但我仍然收到这个错误。

此外,我已经尝试在我的Podio应用程序上搜索任何设置,但不允许用户编辑项目的设置被取消选中。

授权方法

response = HTTParty.post("https://podio.com/oauth/token?grant_type=password&client_id=cliendId&client_secret=clientSecret&password=password&username=username",
headers: { 'Content-Type': 'application/json' })
return "OAuth2 #{JSON.parse(response.body)['access_token']}"

编辑项目方法

response = HTTParty.put("https://api.podio.com/item/123",
headers: { 'Content-Type': 'application/json',
'Authorization': authorization },
body: { fields: data }.to_json)

这样做可以让我做任何事情,除了编辑,当我试图编辑任何记录时,我总是收到这个错误。

PodioForbiddenError: "The user with id 123 does not have the right update on item with id 123"

错误表明,经过身份验证的用户无权访问上述项目,或者组成该项目的应用程序可能启用了以下设置。CCD_ 2。您可以在扳手图标的应用程序设置菜单中检查此设置。

最新更新