Mutation
mutation RearrangeLabelTypes($input: RearrangeLabelTypesInput!) {
rearrangeLabelTypes(input: $input) {
labelTypes {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"siblingGroups": [
{
"labelTypeIds": [
"id"
]
}
]
}
}Response
{
"data": {
"rearrangeLabelTypes": {
"labelTypes": [
{
"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
rearrangeLabelTypes
Moves and reorders many label types in one operation. Each sibling group sets the order of the label types under one parent, and listing a label type under a different parent moves it there. All changes are applied together or not at all, and only label types whose parent or position changes are updated. Requires the labelType:edit permission.
MUTATION
rearrangeLabelTypes(input: RearrangeLabelTypesInput!): RearrangeLabelTypesOutput!Arguments
input
required
Returns
labelTypes
[LabelType!]!
The label types whose parent or position changed.
error
Mutation
mutation RearrangeLabelTypes($input: RearrangeLabelTypesInput!) {
rearrangeLabelTypes(input: $input) {
labelTypes {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"siblingGroups": [
{
"labelTypeIds": [
"id"
]
}
]
}
}Response
{
"data": {
"rearrangeLabelTypes": {
"labelTypes": [
{
"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?

