mutation

updateCommunicationConsent

Update or insert the consent provided by the user for receiving communication messages.
Arguments
communicationConsentReqInput
CommunicationConsentReqInput!
Required
The request schema for the communication consent API includes the user's response status, the user's choice to opt in or opt out of receiving communications, and the channel through which the user wishes to receive communications.
Response
app_id
String
The ID of the sales channel where the user has given their consent.
channels
Channels
The schema for the all the communication channels that the user has accept to receive communication through.
user_id
String
Identifier which can uniquely identify the user.
Mutation
1mutation updateCommunicationConsent(
2 $communicationConsentReqInput: CommunicationConsentReqInput!
3) {
4 updateCommunicationConsent(
5 communicationConsentReqInput: $communicationConsentReqInput
6 ) {
7 app_id
8 user_id
9 }
10}
Try it
Input Variables
1{
2 "communicationConsentReqInput": {
3 "action": "optin",
4 "channel": "email",
5 "response": "yes"
6 }
7}
Response
1{
2 "updateCommunicationConsent": {
3 "app_id": "app_id",
4 "user_id": "user_id"
5 }
6}