{"type":"api","title":"Create Notification Rule","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/d2f02ba2-fd0d-3a26-bcc5-feafc8f24d17","info":{"title":"Monitoring and Troubleshooting","description":"Includes API operations for the following:\n- Real-time monitoring\n- Accessing statistics APIs and statistics bulk APIs\n- Retrieving device state\n- Managing alarms and events\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Monitoring - Alarms Notification"],"description":"Add notification rule","operationId":"createNotificationRule","requestBody":{"description":"Notification rule","content":{"application/json":{"schema":{"type":"object"},"examples":{"Notification rule":{"description":"Notification rule","value":{"notificationRuleName":"testwebhook","severity":"Medium","alarmName":"BFD_Node_Up","accountDetails":"noreply@cisco.com","webHookEnabled":true,"webhookUsername":"admin","webhookPassword":"admin","webhookUrl":"https://localhost:8444","updatedBy":"admin","devicesAttached":"1712133e-0246-4281-8152-3317b796d2bc","emailThreshold":5,"sourceVpn":512,"vpn":10,"vpnIpSubnet":"192.168.1.0/24","accountDetailsArray":["noreply@cisco.com"]}}}}},"required":true},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object"},"examples":{"Notification rule":{"description":"Notification rule","value":"{\n \"accountDetails\": \"noreply@cisco.com\",\n \"accountDetailsArray\": [\n \"noreply@cisco.com\"\n ]\n \"alarmName\": \"BFD_Node_Up\",\n \"devicesAttached\": \"1712133e-0246-4281-8152-3317b796d2bc\",\n \"emailEnabled\": true,\n \"emailThreshold\": 5,\n \"notificationRuleName\": \"testwebhook\",\n \"severity\": \"Medium\",\n \"updatedBy\": \"admin\",\n \"webHookEnabled\": true,\n \"webhookPassword\": \"admin\",\n \"webhookUrl\": \"https://localhost:8444\",\n \"webhookUsername\": \"admin\",\n \"sourceVpn\":512,\n \"vpn\":10,\n \"vpnIpSubnet\":\"192.168.1.0/24\",\n}"}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"Settings-write","method":"post","path":"/notifications/rule"}}