无法通过 API 更新发布定义

Vik*_*nth 1 azure-devops azure-pipelines-release-pipeline azure-devops-rest-api

似乎我无法再通过 API https://docs.microsoft.com/en-us/rest/api/vsts/release/definitions/update?view=vsts-rest-5.0更新 VSRM 版本定义

唯一我改变的事情是从版本号1112获取释放定义之后。

API 网址:https://.vsrm.visualstudio.com/One/_apis/Release/definitions?api-version=5.0-preview.3

响应:{ "$id": "1", "innerException": null, "message": "您正在使用版本定义的旧副本。刷新您的副本并重试。", "typeName": "Microsoft.VisualStudio .Services.ReleaseManagement.Data.Exceptions.InvalidRequestException, Microsoft.VisualStudio.Services.ReleaseManagement2.Data", "typeKey": "InvalidRequestException", "errorCode": 0, "eventId": 3000 }

我尝试了api 版本4.15.0预览 api 版本。同样的错误。我将 PostMan 与 PAT 一起使用。GET 工作正常。

你能告诉我我做错了什么吗?

Vik*_*nth 5

不要修改修订版。提交带有旧版本的发布定义的修改版本,服务器将为新版本生成新版本号。