从 Azure 中的 REST api 调用发布版本

Call a release build from REST api in Azure

我想调用 Azure Devops 从我的发布管道之一创建新版本。

我一直在寻找不同的调用,但它要么创建管道,要么构建工件。

有没有办法从 Azure API 调用发布管道?

我用下一个端点做到了:https://docs.microsoft.com/en-us/rest/api/azure/devops/build/Builds/Queue?view=azure-devops-rest-5.0&viewFallbackFrom=vsts-rest-4.1

我为终结点使用了错误的正文。通过文档中的示例,它起作用了。