I have created
email_account (for sending) and
email_group (for receiving) using the below APIs;
POST _opendistro/_alerting/destinations/email_accounts POST _opendistro/_alerting/destinations/email_groups
I have tried using Kibana UI, to create alerting destination by going to Alerting > Destinations > Create destination. But, after clicking “Create” button, nothing is happening, the button will stay inactive for a while and then comes back to active, without doing anything. So, I decided to use API to create destination.
Here, https://opendistro.github.io/for-elasticsearch-docs/docs/alerting/api/#requests its documented how to create slack and webhook destinations using API. Somebody please tell me how to create email destination using API, by providing Name, Type, Sender, and Recipients.
Thanks in advance.