object hostgroup.create(object/array hostGroups)
This method allows to create new host groups.
(object/array) Host groups to create. The method accepts host groups with the standard host group properties.
(object) Returns an object containing the IDs of the created host groups under the
groupids property. The order of the returned IDs matches the order of the passed host groups.
Create a host group called "Linux servers".
CHostGroup::create() in frontends/php/include/classes/api/services/CHostGroup.php.