I am unable to configure an alerting destination via API in v2.1.0 of OpenSearch.
Below works in v1.3.3:
POST _plugins/_alerting/destinations
{
"name": "my-destination",
"type": "slack",
"slack": {
"url": "http://www.example.com"
}
}
In v2.1.0 get the following error:
{
"error" : "Incorrect HTTP method for uri [/_plugins/_alerting/destinations?pretty=true] and method [POST], allowed: [GET]",
"status" : 405
}
I copied this example from current API documentation - https://opensearch.org/docs/2.1/monitoring-plugins/alerting/api/#create-destination
Anyone else seen this issue?