createHubTeams

Function

Create all the groups (aka Teams) required for a Site or Initiative The group names are derived from the Site/Initiative title. Group names must be unique on create, so if necessary we will increment the names after translation. If you need to ADD a Team to an existing Site/Initiative, use the teams-service::addTeams function

Parameters

Parameter Type Default Notes
opts Required {
hubRequestOptions:
IHubRequestOptions
title:
string
types:
HubTeamType[]
}

Returns

Promise<{
groups:
IGroup[]
props:
any
}>

Function defined in teams/src/create-hub-teams.ts:22