You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Heroku API在团队账户下创建应用?

在Heroku团队中通过API创建应用的方法

你之前的curl命令默认会将应用创建到个人账户下,而你的个人账户未完成支付信息验证,因此触发了错误提示。由于你的团队已经完成验证并添加了支付信息,只需在请求体中指定团队信息,就能将应用创建到团队名下。

修改后的curl命令如下:

curl -X POST https://api.heroku.com/apps \
-H "Accept: application/vnd.heroku+json; version=3" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"name\":\"test-1\", \"team\":\"你的团队名称或ID\"}"
  • 其中team字段的值可以是你的团队名称,也可以是团队的UUID(可在Heroku控制台的团队设置页面中找到)
  • 确保你的API令牌拥有该团队的应用创建权限

内容的提问来源于stack exchange,提问作者Dan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 03:02:03