Mutation
mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {
updateCustomerGroup(input: $input) {
customerGroup {
id
name
key
color
externalId
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerGroupId": "id"
}
}Response
{
"data": {
"updateCustomerGroup": {
"customerGroup": {
"id": "id",
"name": "string",
"key": "string",
"color": "string",
"externalId": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateCustomerGroup
Update the name, key, color, or external ID of an existing customer group. At least one field must be provided in the input. Requires customerGroup:edit permission.
MUTATION
updateCustomerGroup(input: UpdateCustomerGroupInput!): UpdateCustomerGroupOutput!Arguments
input
required
Returns
customerGroup
error
Mutation
mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {
updateCustomerGroup(input: $input) {
customerGroup {
id
name
key
color
externalId
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerGroupId": "id"
}
}Response
{
"data": {
"updateCustomerGroup": {
"customerGroup": {
"id": "id",
"name": "string",
"key": "string",
"color": "string",
"externalId": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

