Discussions
API call to unsubscribe contact from all CommunicationTypePreferences
Greetings!
I am working on a way to handle automating email unsubscribes using the REST API. The org I am helping uses a third party mailing system, and we want the unsubscribe action from that system to result in an API call on iMIS that will do the same thing as the "Unsubscribe from all" checkbox on the built-in Communication Preferences iPart. Has anyone done something similar?
The challenge I've run into is: (1) the communication type preferences data appears to only be accessibly on the Party endpoint and (2) new contacts who have never changed any communication type preferences do not have any entries in the CommunicationTypePreferences.
I've started playing around with inserting arrays of CommunicationTypePreferences via Party endpoint updates but I don't want to go too far down the rabbit hole if an easier way may exist. Thanks in advance for any suggestions!