Unable do create a destination

Hi Guys,

I’m trying to add a destination to slack workspace, but it did not work.

When I create via WEB UI, I type the informations required, but I do not save.

After this, I tried via API, with the following command:

POST _opendistro/_alerting/destinations/
{
  "name": "SOC-alerts",
  "type": "slack",
  "slack": {
    "url": "https://hooks.slack.com/services/XXXXXXXX"
  }
}

With the erros:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "invalid_index_name_exception",
        "reason" : "Invalid index name [_opendistro], must not start with '_', '-', or '+'",
        "index_uuid" : "_na_",
        "index" : "_opendistro"
      }
    ],
    "type" : "invalid_index_name_exception",
    "reason" : "Invalid index name [_opendistro], must not start with '_', '-', or '+'",
    "index_uuid" : "_na_",
    "index" : "_opendistro"
  },
  "status" : 400
}

Anyone could help me?

I have cut and pasted your code into my cluster and it works fine.