I could only find older answers to this, or ones relating to sms not email.
When customers use their account pages on our site to unsubscribe, I need to synchronise this with their Klaviyo profile.
I have tried doing this with /identify, /profile and even the /exclusions endpoint. None of them actually work. Although the requests go through fine, the profile consent status stays the same.
I have tried setting $consent to an empty array, to false, to null, to ‘None’ and all sorts of variations. I have tried sending ‘email_consent’ => false, ‘$email_consent’ => false, to ‘None’, to null and all sorts of variations on that, too.
Each time the custom ‘updated’ property of the profile is set to the timestamp of the request, so I know it got through, and they’re showing as HTTP 200, returning a 1, all good. But no changes to the profile’s $consent.
How do I actually go about doing this via API please?