Mutation
mutation CreateTier($input: CreateTierInput!) {
createTier(input: $input) {
tier {
id
name
externalId
color
isDefault
defaultPriority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string",
"externalId": "string",
"color": "string",
"memberIdentifiers": [
{}
]
}
}Response
{
"data": {
"createTier": {
"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
createTier
Creates a new tier. You can optionally add tenant and company members at creation time. Requires the tier:create permission.
MUTATION
createTier(input: CreateTierInput!): CreateTierOutput!Arguments
input
required
Returns
tier
error
Mutation
mutation CreateTier($input: CreateTierInput!) {
createTier(input: $input) {
tier {
id
name
externalId
color
isDefault
defaultPriority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string",
"externalId": "string",
"color": "string",
"memberIdentifiers": [
{}
]
}
}Response
{
"data": {
"createTier": {
"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?

