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?