Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.

How to Re-subscribe an opt-out user through API

Avatar

Level 2

https://experienceleague.adobe.com/docs/journey-optimizer/using/email/email-opt-out.html?lang=en 

 

As mentioned in the above URL, executed the below steps

1. Tried using the API URL's with request parameters 'params' and 'pid' (which is retrieved through the first email received by the user. Also, every time new email is received the params & pid changes)

 

2. Did add the Header data and request body. This looks fine.

{
   "marketing": [
       {
            "type": "email",
            "choice": "yes",
            "scope": "channel"
        }
    ]
}

3. Getting Not Acceptable error as response like below

 

{
    "timestamp": "2024-01-24T04:04:57.373+00:00",
    "status": 406,
    "error": "Not Acceptable",
    "path": "/preferences"
}
 
Anything wrong with params and pid? Does it auto-expire after sometime?
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

API
2 Replies

Avatar

Community Advisor

@shashi_c23, Are you using an externally hosted landing page from the email sent by AJO? When you click on “unsubscribe,” does it make a call to the subscription API along with the parameters and request body mentioned in the documentation, to update the opt-out flag in AJO?

Thanks, Sathees

Avatar

Administrator

Hi @shashi_c23,
Can you help @SatheeskannaK understand your issue more to be able to help you further?

Thanks!



Sukrity Wadhwa