Mutation
mutation AcceptSuggestedLabelTypes($input: AcceptSuggestedLabelTypesInput!) {
acceptSuggestedLabelTypes(input: $input) {
labelTypes {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"suggestedLabelTypeIds": [
"id"
]
}
}Response
{
"data": {
"acceptSuggestedLabelTypes": {
"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
acceptSuggestedLabelTypes
Accepts one or more pending suggested label types, creating a real label type for each and marking the suggestions as ACCEPTED. All ids must currently be PENDING. Fails the whole batch with error code label_type_name_already_exists if a suggestion’s name matches an existing label type or another suggestion in the same batch. Requires the labelType:create and labelType:read permissions.
MUTATION
acceptSuggestedLabelTypes(input: AcceptSuggestedLabelTypesInput!): AcceptSuggestedLabelTypesOutput!Arguments
input
required
Returns
labelTypes
[LabelType!]!
error
Mutation
mutation AcceptSuggestedLabelTypes($input: AcceptSuggestedLabelTypesInput!) {
acceptSuggestedLabelTypes(input: $input) {
labelTypes {
id
name
icon
color
type
description
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"suggestedLabelTypeIds": [
"id"
]
}
}Response
{
"data": {
"acceptSuggestedLabelTypes": {
"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?

