Hi All,
I have one than more notification channels in Grafana v7.1.2. I try to check slack channel API with curl.
I got notification channel by uid successfully. But, I failed test notification channel.
curl -X POST -H "Accept: application/json" -H "Authorization: Bearer eyJrIjoiNldnMDh6V0pVdFpOd0M3OGtZNVRteXlZcm9jQnZIa2oiLCJuIjoiQVBJX0FkbWluIiwiaWQiOjF9" -d '{ "id": 5, "type": "Slack" , "settings": {"uploadImsge": true, "url": "https://hooks.slack.com/services/XXXX"} }' http://xxx.xx.xx.xx:3000/api/alert-notifications/test {"message":"Failed to send alert notifications"}
Log is below;
msg="Failed to send alert notifications" logger=context userId=0 orgId=1 uname= error="Unsupported notification type" remote_addr=xxx.xx.xx.x t=2021-04-27T07:17:35-0400 lvl=eror msg="Request Completed" logger=context userId=0 orgId=1 uname= method=POST path=/api/alert-notifications/test status=500 remote_
The test is running with the same information from the interface. How can I use the api properly?