createGroup

createGroup

createGroup(requestOptionsICreateGroupOptions): Promise<{ group: IGroup; success: boolean }>

Create a new Group. See the REST Documentation for more information.

Use dark colors for code blocksCopy
          
1
2
3
4
5
6
7
8
9
10
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
ParameterTypeNotes
requestOptions
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

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.