Api call host.update fails when trying to change host's dns.
{
"params" : {
"inventory" :
,
"interfaces" : [
,
{ "dns" : "host.domain2.org", "useip" : 1, "ip" : "10.1.2.3", "type" : 2, "port" : 161, "main" : 1 } ],
"groups" : [
,
,
,
{ "groupid" : "46" } ],
"hostid" : "10229",
"templates" : [
]
},
"auth" : "3c793c58b9eaf58092fce06d743bca78",
"jsonrpc" : "2.0",
"method" : "host.update",
"id" : 13
}
Error:
{"data":"SQL statement execution has failed \"DELETE FROM interface WHERE (interfaceid IN ('269','270')) \"","message":"Application error.","code":-32500}