createGroup( )


Creates a group.

When a group is created, the newly created group is added to the Groups List page of a site.

Specify a creatorId to set the group's creator. The group's creator will automatically become a group admin, see Terminology (REST | SDK).

Wix users determine who can create a group. This setting can be found in a site's Dashboard under Groups > General Settings > Group Creation. If set to members with approval, site members can create a group with the Create Group method, and the group becomes a createRequest with a status of PENDING. A Wix user either approves or rejects the request to create a group. If set to all site members, site members can create a group with the Create Group method and no approval is required. If set to only admins, only Wix users can create a group with the Create Group method. Default is set to members with approval.

Method Declaration
Copy
Method Parameters
groupGroupRequired

Group to create.


optionsCreateGroupOptions

Optional fields for group creation.

Returns
Return Type:Promise<Group>
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?