I'm new with OpenDaylight controller ,I'm getting this error when trying to post with Rest api to OpenDaylight.

```
function UserAction() {

var xhttp = new XMLHttpRequest();

xhttp.open("POST", "http://localhost:8181/restconf/config/SecAser:SecAser/", 
false);
xhttp.setRequestHeader("Content-type", "application/json");
var parameters={
"attacks": [
{
"id":"4",
"attack-match":"Sniffing",
"etat":"true"
}
]
}
//JSON.stringify(parameters);
xhttp.setRequestHeader("Content-type", "application/json");
xhttp.send(parameters);
var response = JSON.parse(xhttp.responseText);
alert(xhttp.responseText);
}

```

This is the datasource ![like a database]](https://i.stack.imgur.com/Nqi06.png)
![and this is the error message](https://i.stack.imgur.com/2ERCh.png)