API to update tenant default preferences for a specific notification category.
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
unique identifier of the brand/tenant you want to update default preferences for
notification category slug. You can get this from Notification Categories page on SuprSend dashboard -> Settings page
set **opt_in** to turn on notifications on all or selected channels by default, **opt_out** to turn-off notifications by default, **cant_unsubscribe**if you do not want users to completely opt-out from this category.
opt_in, opt_out, cant_unsubscribe set it false to hide a category from user's preference page
Add mandatory channels that the user can't unsubscribe from if preference is cant_unsubscribe.
email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush, ms_teams Add channels that should be opted-in by default when preference is either On or Can't Unsubscribe. Set to null or do not pass this parameter to set all channels as opted-in. In case of Can't Unsubscribe, mandatory channels are opted-in by default.
email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush, ms_teams Pass channels which are not applicable for the tenant. This setting will apply to all categories and user will not be able to opt-in to these channels for the tenant.
email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush, ms_teams 202
preference category name
unique preference category slug. You can get it by clicking on category name on SuprSend dashboard -> preference page
description of the notification category
root category this sub-category belongs to
"transactional"
default preference of the category set while updating the category.
cant_unsubscribe, opt_in, opt_out default mandatory channels set while updating the category in case default preference is can't unsubscribe
default opt-in channels set to have selective opt-in channels instead of all channels while updating the category.
opt-in channels overridden for this tenant.
set it false to hide a category from user's preference page
preference setting overridden for this tenant.
opt_in, opt_out channels which are opted-out across all categories for this tenant.
email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush, ms_teams