curl https://api.thanxsandbox.com/communication_settings/woerihfslkwer \ -X PATCH \ $AUTH_HEADERS \ -d '{ "communication_setting": { "reward_earned": { "notification": false, "email": false }, "feedback_available": { "notification": true }, "marketing_general": { "email": true, "sms": false } } }'
{ "communication_setting": [ { "id": "weoruoisdhf", "merchant_id": "owierywtwt", "user_id": "woerushfwe", "reward_earned": { "notification": true, "email": true }, "reward_unused": { "notification": true, "email": true }, "reward_progress": { "notification": true, "email": true }, "reward_offer": { "notification": true, "email": true }, "feedback_available": { "notification": true }, "marketing_general": { "email": true, "sms": true } } ] }
This endpoint allows the update of a user’s notification / email settings.
Show reward_earned
Show reward_unused
Show reward_progress
Show reward_offer
Show feedback_available
Show marketing_general