Mutation
mutation UnmarkCustomerAsSpam($input: UnmarkCustomerAsSpamInput!) {
unmarkCustomerAsSpam(input: $input) {
customer {
id
externalId
fullName
shortName
email {
email
isVerified
verifiedAt {
__typename
}
}
avatarUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerId": "id"
}
}Response
{
"data": {
"unmarkCustomerAsSpam": {
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"email": "string",
"isVerified": true,
"verifiedAt": {
"__typename": "DateTime"
}
},
"avatarUrl": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
unmarkCustomerAsSpam
Clears the spam flag from a customer, restoring their threads to the inbox and metrics.
The markedAsSpamAt timestamp is cleared. Requires the customer:edit permission.
MUTATION
unmarkCustomerAsSpam(input: UnmarkCustomerAsSpamInput!): UnmarkCustomerAsSpamOutput!Arguments
input
required
Returns
customer
error
Mutation
mutation UnmarkCustomerAsSpam($input: UnmarkCustomerAsSpamInput!) {
unmarkCustomerAsSpam(input: $input) {
customer {
id
externalId
fullName
shortName
email {
email
isVerified
verifiedAt {
__typename
}
}
avatarUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerId": "id"
}
}Response
{
"data": {
"unmarkCustomerAsSpam": {
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"email": "string",
"isVerified": true,
"verifiedAt": {
"__typename": "DateTime"
}
},
"avatarUrl": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

