无法通过REST API获取Azure DevOps事件

时间:2019-02-13 11:30:19

标签: azure-devops azure-devops-rest-api

我正在尝试通过下面列出的REST API获取Azure DevOps事件:

POST https://dev.azure.com/{organization}/_apis/notification/events?api-version=5.0-preview.1

我尝试使用上述API来获取事件,但在邮递员呼叫中,我得到的响应如下:

{
    "$id": "1",
    "innerException": null,
    "message": "The feature is disabled. Contact your Azure DevOps Server administrator.",
    "typeName": "Microsoft.TeamFoundation.Framework.Server.FeatureDisabledException, Microsoft.TeamFoundation.Framework.Server",
    "typeKey": "FeatureDisabledException",
    "errorCode": 0,
    "eventId": 3000
}

应该在邮递员接到电话后发出事件

1 个答案:

答案 0 :(得分:0)

您的POST方法用于发布新事件:Events - Publish Event。我找不到事件的get方法(仅:Event Types - GetEvent Types - List)。也许还没有编码:

enter image description here