1
votes

I am trying to get Azure DevOps events through REST API listed below:

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

I tried the above API to get events but in postman call, I am getting below response:

{
    "$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
}

It should give events after postman call

1
The API you're calling is a POST operation which will publish an event, but your question states that you want to get events. I think you're calling the wrong API. See: docs.microsoft.com/en-us/rest/api/azure/devops/notification/…Charlie Drewitt

1 Answers

0
votes

Your method with POST is for publish a new event: Events - Publish Event. I can not find the get method for events (only: Event Types - Get or Event Types - List). Maybe it was not coded yet:

enter image description here