Mutation
mutation UpsertTeamSettings($input: UpsertTeamSettingsInput!) {
upsertTeamSettings(input: $input) {
teamSettings {
id
labelTypeId
isRoundRobinEnabled
roundRobinMaxCapacity
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelTypeId": "id"
}
}Response
{
"data": {
"upsertTeamSettings": {
"teamSettings": {
"id": "id",
"labelTypeId": "id",
"isRoundRobinEnabled": true,
"roundRobinMaxCapacity": 1,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
upsertTeamSettings
Create or update the settings for a team (label type of kind TEAM). If settings do not yet exist for the given team, they are created with defaults (round-robin disabled, max capacity 5); otherwise the existing settings are updated with the supplied values. The labelTypeId must refer to a label type of type TEAM — passing any other label type ID returns a validation error. Requires the labelType:edit permission.
MUTATION
upsertTeamSettings(input: UpsertTeamSettingsInput!): UpsertTeamSettingsOutput!Arguments
input
required
Returns
teamSettings
error
Mutation
mutation UpsertTeamSettings($input: UpsertTeamSettingsInput!) {
upsertTeamSettings(input: $input) {
teamSettings {
id
labelTypeId
isRoundRobinEnabled
roundRobinMaxCapacity
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelTypeId": "id"
}
}Response
{
"data": {
"upsertTeamSettings": {
"teamSettings": {
"id": "id",
"labelTypeId": "id",
"isRoundRobinEnabled": true,
"roundRobinMaxCapacity": 1,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

