Heroku API:将合作者添加到应用程序中,并设置其部署,操作和管理的权限

发布于 2025-01-24 12:19:41 字数 549 浏览 1 评论 0原文

我正在使用 heroku的平台API 创建应用程序,我正在将协作者添加到通过调用 collaborator create 电子邮件。

它有效,但问题是我无法直接通过API呼叫设置合作者的特权,合作者只是在应用程序上具有view权限,但我也希望他拥有exploye 和操作

我尝试发送额外的参数,但Heroku拒绝并返回422。

这是API的限制吗?还有其他选择吗?

I am using Heroku's Platform API to create apps and I am adding collaborators to the app by calling Collaborator Create, passing the app name and collaborator's email.

It works but the issue is that I can't set the collaborator's privileges directly through the API call, the collaborator just has View permissions on the app but I also want him to have Deploy and Operate.

I tried sending extra parameters but Heroku rejects and returns 422.

Is this a limitation of the API? Is there an alternative?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文