Admin API/Customers/Mutations
customerWhatsAppMarketingConsentUpdate
mutationReturns CustomerWhatsAppMarketingConsentUpdatePayload!
mutation CustomerWhatsAppMarketingConsentUpdate($input: CustomerWhatsAppMarketingConsentUpdateInput!) {
customerWhatsAppMarketingConsentUpdate(input: $input) {
customer {
id
email
phone
createdAt
blocked
blockedReason
}
userErrors {
code
message
field
}
}
}
# Variables
{
"input": {
"customerId": "gid://ostorya/Customer/0f8c5b1e-…",
"marketingConsent": {
"marketingState": "NOT_SUBSCRIBED"
}
}
}Arguments
- inputCustomerWhatsAppMarketingConsentUpdateInput!required
Payload
- customerCustomer
- userErrors[UserError!]!required