Mutation
mutation RemoveLabels($input: RemoveLabelsInput!) {
removeLabels(input: $input) {
thread {
id
ref
customer {
id
externalId
fullName
shortName
email {
__typename
}
avatarUrl
}
title
description
previewText
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelIds": [
"id"
]
}
}Response
{
"data": {
"removeLabels": {
"thread": {
"id": "id",
"ref": "string",
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"__typename": "EmailAddress"
},
"avatarUrl": "string"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
removeLabels
Remove one or more labels from a thread by label ID. All provided label IDs must belong to the same thread; mixing labels from different threads returns an error. Requires the label:delete permission.
MUTATION
removeLabels(input: RemoveLabelsInput!): RemoveLabelsOutput!Arguments
input
required
Returns
thread
error
Mutation
mutation RemoveLabels($input: RemoveLabelsInput!) {
removeLabels(input: $input) {
thread {
id
ref
customer {
id
externalId
fullName
shortName
email {
__typename
}
avatarUrl
}
title
description
previewText
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"labelIds": [
"id"
]
}
}Response
{
"data": {
"removeLabels": {
"thread": {
"id": "id",
"ref": "string",
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"__typename": "EmailAddress"
},
"avatarUrl": "string"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

