This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents


Available since version: 1.8


Multidimensional array with Host groups data

Parameter Type Optional Description Details
groups array Host group to update.
hosts array Yes Host objects that should be added to host groups.
templates array Yes Template objects that should be added to host groups.


Parameter Description
result Operation successful. Result will contain array of updated Host group IDs.
error In case of any errors


Add two hosts with ID "100100000010092", "100100000010086" to two host groups with ID "100100000000042", "100100000000013"

           "groups": [
             {"groupid": "100100000000042"},
             {"groupid": "100100000000013"}
           "hosts": [ 
               {"hostid": "100100000010092"},
               {"hostid": "100100000010086"}

Host groups updated successfully: