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.
user_id (MoEngage ID) and the cid (Campaign ID) fields should be fetched from the landing page URL.This authentication parameter, used for access control, must be passed along with the request. To generate the authentication header, refer to Authentication.
It uses Workspace ID as username and Data API Key as password.
This is your MoEngage account's APP ID that has to be passed along with the request. You can find your MoEngage Workspace ID at Settings -> Account -> APIs -> Workspace ID (earlier app id).
Set the Content-Type header to application/json.
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.