@POST
   @Produces("text/plain")
   @ApiOperation(value = "Create new group", nickname = "GroupService#createGroup", notes = "Creates group resource.")
   @ApiImplicitParams({
     @ApiImplicitParam(name = "body", value = "input parameters in json form", required = true, dataType = "org.apache.ambari.server.controller.GroupRequest", paramType = "body")
   })
   @ApiResponses(value = {
     @ApiResponse(code = 200, message = "successful operation"),
     @ApiResponse(code = 500, message = "Server Error")}
   )
   public Response createGroup(String body, @Context HttpHeaders headers, @Context UriInfo ui) {
    return handleRequest(headers, body, ui, Request.Type.POST, createGroupResource(null));
  }
Creates a group.
Handles: POST /groups requests.

@param headers      http headers
@param ui           uri info
@return information regarding the created group
ambari-server/src/main/java/org/apache/ambari/server/api/services/groups/GroupService.java