How to Re-subscribe an opt-out user through API | Community
Skip to main content
Level 2
January 24, 2024
Question

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

  • January 24, 2024
  • 1 reply
  • 603 views

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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SatheeskannaK
Community Advisor
Community Advisor
January 25, 2024

@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
Sukrity_Wadhwa
Community Manager
Community Manager
January 30, 2024

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

Thanks!

Sukrity Wadhwa