Hello! I’m trying to add a device group using an example from LibreNMS Docs https://docs.librenms.org/API/DeviceGroups/#get_devicegroups, but I’m getting an error - We couldn’t parse the provided json. Syntax error
curl -H 'X-Auth-Token: ***********************' \
-d '{"name": "New Device Group", \
"desc": "A very fancy dynamic group", \
"type": "dynamic",
"rules": "{\"condition\":\"AND\",\"rules\":[{\"id\":\"access_points.name\",\"field\":\"access_points.name\",\"type\":\"string\",\"input\":\"text\",\"operator\":\"equal\",\"value\":\"accesspoint1\"}],\"valid\":true}"}' \
http://10.255.255.20/api/v0/devicegroups
{
"status": "error",
"message": "We couldn't parse the provided json. Syntax error"
}%
Does anyone knows what is the issue here?
Thank you
Dmitri