无法通过 API 更新版本定义

Can not update release definition through API

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

更新 VSRM 版本定义

我唯一改变的是在获得发布定义后版本号从 1112

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

Response: { "$id": "1", "innerException": null, "message": "You are using an old copy of release definition. Refresh your copy and try again.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException, Microsoft.VisualStudio.Services.ReleaseManagement2.Data", "typeKey": "InvalidRequestException", "errorCode": 0, "eventId": 3000 }

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

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

请勿修改修订版。使用旧修订提交发布定义的修改版本,服务器将为新版本生成新版本号。