Mutation
mutation CreateLabelType($input: CreateLabelTypeInput!) {
createLabelType(input: $input) {
labelType {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string"
}
}Response
{
"data": {
"createLabelType": {
"labelType": {
"id": "id",
"name": "string",
"icon": "string",
"color": "string",
"type": "DEFAULT",
"description": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createLabelType
Creates a new label type in the workspace. Label types define the labels available to apply to threads and users. Requires the labelType:create permission.
MUTATION
createLabelType(input: CreateLabelTypeInput!): CreateLabelTypeOutput!Arguments
input
required
Returns
labelType
error
Mutation
mutation CreateLabelType($input: CreateLabelTypeInput!) {
createLabelType(input: $input) {
labelType {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string"
}
}Response
{
"data": {
"createLabelType": {
"labelType": {
"id": "id",
"name": "string",
"icon": "string",
"color": "string",
"type": "DEFAULT",
"description": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

