Update Tenant Default Preference
API to update user default preferences for a brand (now named as tenant)
Authorizations
Pass as Bearer <API_KEY>
. Get API Key from SuprSend dashboard Developers -> API Keys section.
Path Parameters
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
Body
set **opt_in**
to send notifications on all channels by default <br> set **opt_out**
to not send notifications in this category by default. For instance, newsletter <br> set **cant_unsubscribe**
if you do not want users to completely opt-out from this category. Notifications will always be sent on mandatory channels in this category.
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
. Add channels as email
, sms
, whatsapp
, androidpush
, inbox
, iospush
, slack
, webpush
Response
preference category name
unique preference category slug. You can get it by clicking on category name on SuprSend dashboard -> preference page
root category this sub-category belongs to
"transactional"
default preference of the category
cant_unsubscribe
, opt_in
, opt_out
mandatory channels in case default preference is can't unsubscribe
set it false
to hide a category from user's preference page
opt_in
, opt_out
channels blocked in the category from SuprSend dashboard -> tenants page
Was this page helpful?