See the Queries page for a presentation of this resource.
Create a customer tag
GraphQL
mutation CreateCustomerTag($input: CustomerTagInput!) {
CreateCustomerTag(input: $input) {
id
label
active
}
}
JSON
{
"input": {
"label": "Premium Customer"
}
}
JSON
{
"data": {
"CreateCustomerTag": {
"id": 100120,
"label": "Premium Customer",
"active": true
}
}
}
Update a customer tag
id - ID Id of the customer tag
GraphQL
mutation UpdateCustomerTag($id: ID!, $input: CustomerTagInput!) {
UpdateCustomerTag(id: $id, input: $input) {
id
label
active
}
}
JSON
{
"id": 100120,
"input": {
"label": "VIP Customer"
}
}
JSON
{
"data": {
"UpdateCustomerTag": {
"id": 100120,
"label": "VIP Customer",
"active": true
}
}
}
Delete a customer tag
id - ID Id of the customer tag
GraphQL
mutation DeleteCustomerTag($id: ID!) {
DeleteCustomerTag(id: $id)
}
JSON
{
"data": { "DeleteCustomerTag": true }
}
Disable a customer tag
id - ID Id of the customer tag
GraphQL
mutation DisableCustomerTag($id: ID!) {
DisableCustomerTag(id: $id) {
id
active
}
}
JSON
{
"data": {
"DisableCustomerTag": {
"id": 100120,
"active": false
}
}
}
Enable a customer tag
id - ID Id of the customer tag
GraphQL
mutation EnableCustomerTag($id: ID!) {
EnableCustomerTag(id: $id) {
id
active
}
}
JSON
{
"data": {
"EnableCustomerTag": {
"id": 100120,
"active": true
}
}
}
id - ID Identifier (optional)
label - String Name/Label of the tag