Create Group
On this page
GraphQL endpoint: /user
Creates a new group. The user creating the group automatically becomes an admin member. Groups can have different visibility settings to control who can see and join them.
Query
mutation (
$name: String!
$metadata: JSON
$visibility: [GroupVisibilityType!]
) {
createGroup (
name: $name
metadata: $metadata
visibility: $visibility
) {
id
}
}
Variables
{
"metadata": {
"test": "value"
},
"name": "test group",
"visibility": [
"PRIVATE"
]
}
Response
{
"data": {
"createGroup": {
"id": "00000000-0000-4000-8000-000000000001"
}
}
}