Method : POST

URI : /db/notification/register

Body : JSON doc for notification

Example

curl -H "Content-Type: application/json" -d' {"notifid":1234, "name":"high_temp", "rule":"Default rule", "subject":"high temperature", "msg":"A Notification has been generated for high temperature", "freq":60, "pri":3, "mailto":["sachin@bangdb.com","admin@bangdb.com"], "endpoints":[ "http://alert.oil.com"], "tags":[ "oil","sensor" ], "mailfrom":"alert@bangdb.com" }' -X POST http://192.168.1.105:18080/db/notification/register

Response

{
   "msg": "notification registered successfully"
}