Magidoc

createTeam
Mutation

Creates a team in the workspace and returns the created team. Requires non-external member access to the workspace. Fails when a team with the same name (case-insensitive, trimmed) already exists in the workspace.

Arguments

#

workspaceId

ID !
Non-null

Workspace to create the team in

members

[ID !]!
Non-null

User IDs to add as team members; pass an empty array to create the team without members

name

Non-null

Team name; must be unique within the workspace (case-insensitive, trimmed)

isExternal

Non-null

True only for teams made up of external workspace members; external teams cannot include regular users and vice versa

Response

#

Returns Team .

Example

#