This method allows to create new host groups.

    This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See for more information.

    (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.

    Creating a host group

    Create a host group called “Linux servers”.

    Response:

    1. "jsonrpc": "2.0",
    2. "result": {
    3. ]
    4. },
    5. "id": 1

    CHostGroup::create() in ui/include/classes/api/services/CHostGroup.php.