Mutation
mutation MoveLabelType($input: MoveLabelTypeInput!) {
moveLabelType(input: $input) {
labelType {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelTypeId": "id"
}
}Response
{
"data": {
"moveLabelType": {
"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
moveLabelType
Changes the position of a label type in the ordered list, or moves it to a different parent. Supply afterLabelTypeId or beforeLabelTypeId to place the label type relative to a sibling, and optionally parentLabelTypeId to nest it under a parent. Requires the labelType:edit permission.
MUTATION
moveLabelType(input: MoveLabelTypeInput!): MoveLabelTypeOutput!Arguments
input
required
Returns
labelType
error
Mutation
mutation MoveLabelType($input: MoveLabelTypeInput!) {
moveLabelType(input: $input) {
labelType {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelTypeId": "id"
}
}Response
{
"data": {
"moveLabelType": {
"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?

