src/main/java/org/gitlab4j/api/GroupApi.java
public Group addGroup(String name, String path, String description, Visibility visibility,
            Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException {

        Form formData = new GitLabApiForm()
                .withParam("name", name)
                .withParam("path", path)
                .withParam("description", description)
                .withParam("visibility", visibility)
                .withParam("lfs_enabled", lfsEnabled)
                .withParam("request_access_enabled", requestAccessEnabled)
                .withParam("parent_id", isApiVersion(ApiVersion.V3) ? null : parentId);
        Response response = post(Response.Status.CREATED, formData, "groups");
        return (response.readEntity(Group.class));
    }
/**
     * Creates a new project group. Available only for users who can create groups.
     *
     * POST /groups
     *
     * @param name the name of the group to add
     * @param path the path for the group
     * @param description (optional) - The group's description
     * @param visibility (optional) - The group's visibility. Can be private, internal, or public.
     * @param lfsEnabled (optional) - Enable/disable Large File Storage (LFS) for the projects in this group
     * @param requestAccessEnabled (optional) - Allow users to request member access
     * @param parentId (optional) - The parent group id for creating nested group
     * @return the created Group instance
     * @throws GitLabApiException if any exception occurs
     */
Creates a new project group. Available only for users who can create groups.
POST /groups

@param name the name of the group to add
@param path the path for the group
@param description (optional) - The group's description
@param visibility (optional) - The group's visibility. Can be private, internal, or public.
Creates a new project group . Available only for users who can create groups . POST / groups @param name the name of the group to add @param path the path for the group @param description ( optional ) - The group ' s description @param visibility ( optional ) - The group ' s visibility . Can be private internal or public .
public Group addGroup(String name, String path, String description, Visibility visibility,
            Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException {
        Form formData = new GitLabApiForm()
                .withParam("name", name)
                .withParam("path", path)
                .withParam("description", description)
                .withParam("visibility", visibility)
                .withParam("lfs_enabled", lfsEnabled)
                .withParam("request_access_enabled", requestAccessEnabled)
                .withParam("parent_id", isApiVersion(ApiVersion.V3) ? null : parentId);
        Response response = post(Response.Status.CREATED, formData, "groups");
        return (response.readEntity(Group.class));
    }
public Group addGroup ( String name , String path , String description , Visibility visibility , Boolean lfsEnabled , Boolean requestAccessEnabled , Integer parentId ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "name" , name ) . withParam ( "path" , path ) . withParam ( "description" , description ) . withParam ( "visibility" , visibility ) . withParam ( "lfs_enabled" , lfsEnabled ) . withParam ( "request_access_enabled" , requestAccessEnabled ) . withParam ( "parent_id" , isApiVersion ( ApiVersion . V3 ) ? null : parentId ) ; Response response = post ( Response . Status . CREATED , formData , "groups" ) ; return ( response . readEntity ( Group . class ) ) ; }
Creates a new project group.
Creates a new project group .