【发布时间】:2018-11-10 19:11:35
【问题描述】:
我能够使用以下请求成功创建一个带注释的标签(git 标签),但我无法以编程方式将其删除。
POST https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/annotatedtags?api-version=4.1-preview.1
请求:
{
"name": "wagner-test-3",
"message": "wagner-test-3",
"taggedObject": {
"objectId": "aaaaab6cad84a07b7bd65cf3519142a12f856baa"
}
}
根据documentation,没有删除端点,所以我尝试了delete ref endpoint,但到目前为止没有运气。它只返回 400(无效请求)。
DELETE https://dev.azure.com/{organization}/{project}/_apis/git/favorites/refs/{favoriteId}?api-version=4.1-preview.1
回应:
{
"count": 1,
"value": {
"Message": "The request is invalid."
}
}
谢谢。
【问题讨论】:
标签: azure-devops azure-devops-rest-api