Pause activate and deregister a notification
Method : POST
URI : /db/notification/state
Body :
{"notifid":"<notifid>","state":<0,1,-1>}
state value
state = 0 means pause the notification
state = 1 means activate the notification
state = -1 means deregister the notification and delete it
Example
curl -H "Content-Type: application/json" -d'{"notifid":1234,"state":0}' -X POST http://192.168.1.105:18080/db/notification/state
Response
{ "errcode": 0, "error": [ "[SUCCESS] notification template with notifid [ 1234 ] state has been changed properly" ] }