This API updates the subscription category preferences for a specific user who navigates from an email. This endpoint requires the encrypted IDs obtained from the email link.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
This is the MoEngage ID that uniquely identifies the customer. Encrypted using 16 bits DES and encoded in the URL of the landing page.
The campaign ID of the email campaign. Encrypted using 16 bits DES and encoded in the URL of the landing page.
This is used to update the unsubscribe event when the user chooses the 'unsubscribe all' option.
The user's updated preferences.
This field contains the details about the updated subscription preferences of the user.
{
"Promotions": true,
"Updates": false,
"Recommendations": true,
"Newsletter": false
}This field contains information about whether or not a customer has unsubscribed from all categories.
When unsubscribe_all is true, the user is unsubscribed from all the categories, irrespective of the categories marked as true in the category JSON object.
Success. This response is returned when the request is processed successfully.
A brief description of the request status in the case of success.