如何使用Rest API在Bitbucket Cloud中创建项目?

时间:2019-04-03 11:13:24

标签: bitbucket-api bitbucket-cloud

我指的是this Bitbucket API documentation,用于在团队中创建新项目。但是出现404错误:

There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at: https://developer.atlassian.com/bitbucket/api/2/reference/

我在https://api.bitbucket.org/2.0/teams/ {teams-in-space} / projects /

中尝试了不同的选项来代替{teams-in-space}

尝试使用团队名称,团队uuid和用户名(帐户名称),但出现相同的错误。

有人成功使用REST API在Bitbucket Cloud中创建项目吗?

1 个答案:

答案 0 :(得分:0)

我在URL https://api.bitbucket.org/2.0/teams/ {teams-in-space} / projects /中缺少结尾/ 添加尾随/

之后,它现在可以正常工作