From c82cdf2a83cfba26f2647a3d6d9161e3ecf2e6f2 Mon Sep 17 00:00:00 2001 From: Tom van Leeuwen Date: Tue, 20 Aug 2019 13:55:28 +0200 Subject: [PATCH] Fixed the invalid json of the example curl statement (#10537) --- doc/API/Alerts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/API/Alerts.md b/doc/API/Alerts.md index 7d97d8aedc..a3cd5c5c7f 100644 --- a/doc/API/Alerts.md +++ b/doc/API/Alerts.md @@ -279,7 +279,7 @@ Input (JSON): Example: ```curl -curl -X POST -d '{"devices":[1,2,3], "name": "testrule", "builder":"{"condition":"AND","rules":[{"id":"devices.hostname","field":"devices.hostname","type":"string","input":"text","operator":"equal","value":"localhost"}],"valid":true}","severity": "critical","count":15,"delay":"5 m","mute":false}' -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/rules +curl -X POST -d '{"devices":[1,2,3], "name": "testrule", "builder":{"condition":"AND","rules":[{"id":"devices.hostname","field":"devices.hostname","type":"string","input":"text","operator":"equal","value":"localhost"}],"valid":true},"severity": "critical","count":15,"delay":"5 m","mute":false}' -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/rules ``` Output: