Mutation
mutation UpdateLabelType($input: UpdateLabelTypeInput!) {
updateLabelType(input: $input) {
labelType {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelTypeId": "id"
}
}Response
{
"data": {
"updateLabelType": {
"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
updateLabelType
Updates properties of an existing label type. Uses field-level wrapper inputs: pass { value: ... } to change a field, or omit the field entirely to leave it unchanged. At least one field besides labelTypeId must be provided. Requires the labelType:edit permission.
MUTATION
updateLabelType(input: UpdateLabelTypeInput!): UpdateLabelTypeOutput!Arguments
input
required
Returns
labelType
error
Mutation
mutation UpdateLabelType($input: UpdateLabelTypeInput!) {
updateLabelType(input: $input) {
labelType {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelTypeId": "id"
}
}Response
{
"data": {
"updateLabelType": {
"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?

