Mutation
mutation CreateUserGroup($name: String!) {
createUserGroup(name: $name) {
createdAt
id
name
users {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
}
}Variables
{
"name": "string"
}Response
{
"data": {
"createUserGroup": {
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
}
]
}
}
}Mutations
createUserGroup
Creates a user group and returns it.
Mutation
mutation CreateUserGroup($name: String!) {
createUserGroup(name: $name) {
createdAt
id
name
users {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
}
}Variables
{
"name": "string"
}Response
{
"data": {
"createUserGroup": {
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
}
]
}
}
}