Hello,
I am using host.update api to move a host from an old host group to a new one. In the documentation, the "group" parameter states: "Host groups to replace the current host groups the host belongs to". But, it seems that it's just adding the new host group and not removing the old group. When I ran the host.update API, the group list has the new group as well as the old one. My param looks like this:
"params": {
"hostid": "10111",
"groups": ["8"],
"status": 1
}
What am I missing? Any help is appreciated. We have Zabbix server version 3.0.7.
Thanks
I am using host.update api to move a host from an old host group to a new one. In the documentation, the "group" parameter states: "Host groups to replace the current host groups the host belongs to". But, it seems that it's just adding the new host group and not removing the old group. When I ran the host.update API, the group list has the new group as well as the old one. My param looks like this:
"params": {
"hostid": "10111",
"groups": ["8"],
"status": 1
}
What am I missing? Any help is appreciated. We have Zabbix server version 3.0.7.
Thanks
Comment