Mutation
mutation UpdateTier($input: UpdateTierInput!) {
updateTier(input: $input) {
tier {
id
name
externalId
color
isDefault
defaultPriority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"tierId": "id"
}
}Response
{
"data": {
"updateTier": {
"tier": {
"id": "id",
"name": "string",
"externalId": "string",
"color": "string",
"isDefault": true,
"defaultPriority": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateTier
Updates the name, color, external ID, default priority, or default flag of an existing tier. Only the fields you provide are changed. Requires the tier:update permission.
MUTATION
updateTier(input: UpdateTierInput!): UpdateTierOutput!Arguments
input
required
Returns
tier
error
Mutation
mutation UpdateTier($input: UpdateTierInput!) {
updateTier(input: $input) {
tier {
id
name
externalId
color
isDefault
defaultPriority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"tierId": "id"
}
}Response
{
"data": {
"updateTier": {
"tier": {
"id": "id",
"name": "string",
"externalId": "string",
"color": "string",
"isDefault": true,
"defaultPriority": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

