Configure channel
POST
/alerts/v1/notifications/create
const url = 'http://localhost:3000/alerts/v1/notifications/create';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"manager":"grafana","name":"functional-metrics-email","type":"email","config":{"recipientAddresses":"yravinderkumar33@gmail.com;ravinder@sanketika.in","subject":"Obsrv Prod Alert"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/alerts/v1/notifications/create \ --header 'Content-Type: application/json' \ --data '{ "manager": "grafana", "name": "functional-metrics-email", "type": "email", "config": { "recipientAddresses": "yravinderkumar33@gmail.com;ravinder@sanketika.in", "subject": "Obsrv Prod Alert" } }'Request Body
Section titled “Request Body ” Media type application/json
object
Example
{ "manager": "grafana", "name": "functional-metrics-email", "type": "email", "config": { "recipientAddresses": "yravinderkumar33@gmail.com;ravinder@sanketika.in", "subject": "Obsrv Prod Alert" }}Responses
Section titled “ Responses ”Successful response
Media type application/json