def ModifyGroup(r, group, **kwargs):
    """
    Modifies a node group.

    More details for parameters can be found in the RAPI documentation.

    @type group: string
    @param group: Node group name
    @rtype: int
    @return: job id
    """
    return r.request('put', '/2/groups/%s/modify' % group, content=kwargs)
