Create a tracking opt-out
1 min
POST
https://api.campaign.episerver.net/rest/{clientId}/recipients/trackingoptout
clientIdstringClient ID
recipientIdstring<p>Recipient ID (usually the email address)</p>
201<p>The tracking opt-out was created.</p>
406<p>The tracking opt-out is not activated for this client. Ensure that the 'clientId' is correct and the required feature is enabled in the indicated client.</p>
curl --request POST \
--url https://api.campaign.episerver.net/rest/{clientId}/recipients/trackingoptout \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'recipientId=string'