Mutation
mutation DeleteCustomerGroup($input: DeleteCustomerGroupInput!) {
deleteCustomerGroup(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerGroupId": "id"
}
}Response
{
"data": {
"deleteCustomerGroup": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
deleteCustomerGroup
Permanently delete a customer group by ID. This will fail if the group still has members — remove all customers from the group first. Requires customerGroup:delete permission.
MUTATION
deleteCustomerGroup(input: DeleteCustomerGroupInput!): DeleteCustomerGroupOutput!Arguments
input
required
Returns
error
Mutation
mutation DeleteCustomerGroup($input: DeleteCustomerGroupInput!) {
deleteCustomerGroup(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerGroupId": "id"
}
}Response
{
"data": {
"deleteCustomerGroup": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

