Magidoc

insertGroup
Mutation

Creates a new group.

It's very useful when there are no group that has the needed members.

Access: Requires user access to the workspace.

Parameters:

  • workspace: ID of the workspace
  • members: Array of user IDs
  • teams: Array of team IDs
  • name: Name of the group
  • oneToOne: @deprecated do not use this parameter, use 'type' instead
  • type: 'dm' (direct message) or 'group' (group chat) or 'thread'
  • projectId: ID of the project

Examples:

  • Creating a direct message: insertGroup( workspace members: ['user-id-1' (you), 'user-id-2' (other user)] type: 'dm' )
  • Creating a group chat: insertGroup( workspace members: ['user-id-1' (you), 'user-id-2' (other user), 'user-id-3' (other user)] type: 'group' )

Arguments

#

workspace

Non-null

members

[ String !]!
Non-null

teams

[ String !]

name

oneToOne

type

projectId

Response

#

Returns Group .

Example

#

    
  

3

    
  

3

    
  

3