Update Subscription Preferences
curl --request PUT \
--url https://api-{dc}.moengage.com/v1/category-subscription/user-preferences \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"unsubscribe_all": true,
"categories": {
"Promotional": true,
"Transactional": false,
"Special Offers": true,
"Product Updates": true,
"New arrivals": false,
"Recommendations": true,
"Newsletter": true
}
}
'{
"message": "Success"
}Update Subscription Preferences
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.
PUT
/
category-subscription
/
user-preferences
Update Subscription Preferences
curl --request PUT \
--url https://api-{dc}.moengage.com/v1/category-subscription/user-preferences \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"unsubscribe_all": true,
"categories": {
"Promotional": true,
"Transactional": false,
"Special Offers": true,
"Product Updates": true,
"New arrivals": false,
"Recommendations": true,
"Newsletter": true
}
}
'{
"message": "Success"
}Rate Limit
The rate limit is 100 RPM and 360k per day.承認
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Data tile.
For more information on authentication and getting your credentials, refer here.
ヘッダー
クエリパラメータ
ボディ
application/json
The user's updated preferences.