Mutation
mutation DeleteAccount($input: DeleteAccountInput!) {
deleteAccount(input: $input) {
account {
id
name
externalId
url
source
tier {
id
name
externalId
color
isDefault
defaultPriority
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"accountIdentifier": {}
}
}Response
{
"data": {
"deleteAccount": {
"account": {
"id": "id",
"name": "string",
"externalId": "string",
"url": "string",
"source": "API",
"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
deleteAccount
Permanently deletes an account, unlinking it from all customers and removing its fields.
Threads that were associated with the account retain a tombstone reference but are no longer routed through it.
The account can be identified by either its Plain accountId or its externalId.
Requires the tenant:delete permission.
MUTATION
deleteAccount(input: DeleteAccountInput!): DeleteAccountOutput!Arguments
input
required
Returns
account
error
Mutation
mutation DeleteAccount($input: DeleteAccountInput!) {
deleteAccount(input: $input) {
account {
id
name
externalId
url
source
tier {
id
name
externalId
color
isDefault
defaultPriority
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"accountIdentifier": {}
}
}Response
{
"data": {
"deleteAccount": {
"account": {
"id": "id",
"name": "string",
"externalId": "string",
"url": "string",
"source": "API",
"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?

