object hostgroup.massupdate(object parameters)
This method allows to simultaneously replace or remove related objects for multiple host groups.
(object) Parameters containing the IDs of the host groups to update and the objects that should be updated.
|object/array||Host groups to be updated.
The host groups must have the
|hosts||object/array||Hosts to replace the current hosts on the given host groups.
The hosts must have the
|templates||object/array||Templates to replace the current templates on the given host groups.
The templates must have the
(object) Returns an object containing the IDs of the updated host groups under the
Replace all hosts in the host group with ID.
CHostGroup::massUpdate() in frontends/php/include/classes/api/services/CHostGroup.php.