Set opt-out Status
Set opt-out status for the specified email contact.
Function
setContactOptOutStatus()
Url
- POST:
/PuresendService/v1/setContactOptOutStatus
Parameters
- contactId:
long- email/contact to set the opt-out status for
- hasOptOut:
boolean- whether contact has opted out (
true= opted out)
- whether contact has opted out (
Return
- statusCode:
int1: success0: failed
Exception
- Exception
Documentation
- Set opt-out status for the specified email contact.
Examples
{
"contactId": 123456790987654321,
"hasOptedOut": false
}
{
"statusCode": 1
}