API to update tenant preference for a specific category.
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
unique identifier of the tenant you want to update 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.
List of channels to opt-in for this category. Only applicable when preference is opt_in.
200
system, transactional, promotional opt_in, opt_out, cant_unsubscribe opt_in, opt_out, cant_unsubscribe