vadv/zabbixapi — pull request #26 by sprvnk (2013-04-20 00:43:26+00:00)
Title: Modified HostGroups#delete method

Hi Vadv,

I modified HosGroups#delete method so the request looks like

"method": "hostgroup.delete",
"params": [ "42" ]

instead of

"method": "hostgroup.delete",
"params": [ "groupid": "42" ]

which doesn't seem to work as expected as it returns

RuntimeError:
Server answer API error:
{
"code": -32500,
"message": "Application error.",
"data": "You do not have permission to perform this operation."
}

I'm using Zabbix 2.0.5.