I sending the following to the API and receiving this error:
ending: {
"jsonrpc": "2.0",
"method": "host.create",
"params": {
"host": "vwim-070-155-5-ctl2",
"interfaces": [
{
"type": 2,
"main": 1,
"useip": 1,
"ip": "10.15.70.24",
"dns": "",
"port": "161",
"details": {
"version": 2,
"bulk": 0
}
}
],
"groups": [
{
"groupid": 28
}
]
},
"id": 4,
"auth": "9e104b609576738fd5dc4c4e941c072d"
}
Response Code: 200
Response Body: {
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params.",
"data": "Incorrect arguments passed to function."
},
"id": 4
}
ending: {
"jsonrpc": "2.0",
"method": "host.create",
"params": {
"host": "vwim-070-155-5-ctl2",
"interfaces": [
{
"type": 2,
"main": 1,
"useip": 1,
"ip": "10.15.70.24",
"dns": "",
"port": "161",
"details": {
"version": 2,
"bulk": 0
}
}
],
"groups": [
{
"groupid": 28
}
]
},
"id": 4,
"auth": "9e104b609576738fd5dc4c4e941c072d"
}
Response Code: 200
Response Body: {
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params.",
"data": "Incorrect arguments passed to function."
},
"id": 4
}