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.
Mutation
1mutation updateCommunicationConsent(2 $communicationConsentReqInput: CommunicationConsentReqInput!3) {4 updateCommunicationConsent(5 communicationConsentReqInput: $communicationConsentReqInput6 ) {7 app_id8 user_id9 }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}
Was this section helpful?