无法使用 API 作为开发人员在团队中创建 Bitbucket 存储库

Cannot create Bitbucket repository in team as developer using API

我有一个名为 myaccount 的 Bitbucket 帐户。我是一个名为 ateam 的团队的开发人员,该团队不属于我。我不是这个团队的管理员。开发人员设置了在 ateam 中创建存储库的权限。我可以通过 bitbucket 网站的 UI 在 ateam 中手动创建存储库。但是我无法使用 bitbucket 的 API:

$ curl -X POST -v -u myaccount:mypasswd https://api.bitbucket.org/2.0/repositories/ateam/rep1 -H "Content-Type: application/json" -d '{"is_private": true}'    
Enter host password for user 'myaccount':
*   Trying 104.192.143.5...
* Connected to api.bitbucket.org (104.192.143.5) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.bitbucket.org
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
* Server auth using Basic with user 'myaccount'
> POST /2.0/repositories/histeam/rep2 HTTP/1.1
> Host: api.bitbucket.org
> Authorization: Basic YWxleGFuZHJlLW5hZGluOmJpdGJ1Y2tldDEy
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 20
> 
* upload completely sent off: 20 out of 20 bytes
< HTTP/1.1 403 FORBIDDEN
< Server: nginx/1.6.2
< Vary: Authorization, Cookie
< Content-Type: application/json; charset=utf-8
< Strict-Transport-Security: max-age=31536000
< Date: Thu, 14 Jul 2016 09:59:27 GMT
< X-Served-By: app-111
< X-Static-Version: 53f44cd8792e
< ETag: "2517d8a35dee8cb8cd9e5f0c889915ba"
< X-Render-Time: 0.0265378952026
< X-Accepted-OAuth-Scopes: repository:admin
< Connection: keep-alive
< X-Version: 53f44cd8792e
< X-Request-Count: 317
< X-Frame-Options: SAMEORIGIN
< Content-Length: 35
< 
* Connection #0 to host api.bitbucket.org left intact
{"error": {"message": "Forbidden"}}

我已禁止访问。

现在 ateam 的所有者让我成为团队管理员。从那时起,我就可以使用与上面完全相同的命令在 ateam 中创建一个存储库:

$ curl -X POST -v -u myaccount:mypasswd https://api.bitbucket.org/2.0/repositories/ateam/rep1 -H "Content-Type: application/json" -d '{"is_private": true}' 

重点是我需要使用 API 作为开发人员而不是管理员创建存储库。它使用网站的 GUI 但不能通过 API 工作:尽管有创建存储库的权限,但开发人员被禁止使用 API 这样做。那么我们这里有错误吗?如果没有,我是否遗漏了什么?


编辑 1

这里是开发者在团队中的权限截图。如您所见,他们应该能够创建存储库。

此处为 Bitbucket 开发人员。我同意这是一个错误。我实际上对此负有个人责任:(。因此,对此深表歉意。

我已修复,将在下一次部署(可能是本周二)中部署。

亲切的问候。