createGroup
FunctioncreateGroup(requestOptions: ICreateGroupOptions): Promise<{ group: IGroup; success: boolean }>Create a new Group. See the REST Documentation for more information.
import { createGroup } from "@esri/arcgis-rest-portal";
createGroup({
  group: {
    title: "No Homers",
    access: "public"
  },
  authentication
})
  .then(response)Note: The group name must be unique within the user's organization.
Parameters
| Parameter | Type | Notes | 
|---|---|---|
request | ICreateGroupOptions | Options for the request, including a group object  | 
Returns
Promise<{ group: IGroup; success: boolean }>A Promise that will resolve with the success/failure status of the request