This method allows to create new user groups.

    Parameters

    (object/array) User groups to create.

    (object) Returns an object containing the IDs of the created user groups under the usrgrpids property. The order of the returned IDs matches the order of the passed user groups.

    Examples

    Creating a user group

    Create a user group, which denies access to host group “2”, and add a user to it.

    Response:

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

    Source

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