POST - https://staging.subscribercrmapi.acamh.org/api/consentpreference

Updates the Consent Preferences. 'ConsentPreferences' is an array of ConsentPreference items. 'ConsentDetails' is a ConsentDetails item.

{
"ConsentPreferences": [
{
"ContactId": 5678,
"ConsentCategoryId": 1,
"Mail": true,
"Email": true,
"Call": false,
"Sms": false,
"PreferredMergeTypeId": 1
},
{
"ContactId": 5678,
"ConsentCategoryId": 2,
"Mail": false,
"Email": false,
"Call": false,
"Sms": false,
"PreferredMergeTypeId": 1
},
{
"ContactId": 5678,
"ConsentCategoryId": 3,
"Mail": true,
"Email": true,
"Call": true,
"Sms": true,
"PreferredMergeTypeId": 1
}
],
"ConsentDetails": {
"Date": "2024-09-20T07:34:51.5916332+00:00",
"ConsentReceivedById": 1,
"ConsentGivenBy": "",
"Notes": ""
}
}
{
"ConsentPreferences": [
{
"ContactId": 5678,
"ConsentCategoryId": 1,
"Mail": true,
"Email": true,
"Call": false,
"Sms": false,
"PreferredMergeTypeId": 1
},
{
"ContactId": 5678,
"ConsentCategoryId": 2,
"Mail": false,
"Email": false,
"Call": false,
"Sms": false,
"PreferredMergeTypeId": 1
},
{
"ContactId": 5678,
"ConsentCategoryId": 3,
"Mail": true,
"Email": true,
"Call": true,
"Sms": true,
"PreferredMergeTypeId": 1
}
],
"ConsentDetails": {
"Date": "2024-09-20T07:34:51.5916332+00:00",
"ConsentReceivedById": 1,
"ConsentGivenBy": "",
"Notes": ""
}
}