Update Tenant Preference Single Category
API to update tenant preference for a specific category.
Authorizations
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
Path Parameters
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
Body
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.
Tenants can modify some parameters (time, weekdays, monthdays, dtstart, is_default) of existing digest schedules. Users will see merged digest-schedule options (original options + tenant-modified options merged by id).
Override default values for category condition properties. Tenants can change the default value shown to their users.
Response
200
Root category (system, transactional, or promotional) this sub-category belongs to.
system, transactional, promotional Category-level default preference, inherited when the tenant has not overridden it.
opt_in, opt_out, cant_unsubscribe Category-level mandatory channels (applies when the default preference is cant_unsubscribe).
Category-level opt-in channels, used when only selective channels are opted in by default.
Whether the category is enabled for this tenant. When false, the category is hidden from the tenant's users and notifications are not sent in it.
Whether the category appears on the tenant users' preference page.
Tenant's overridden preference for this category. null if the tenant has not overridden the category default.
opt_in, opt_out, cant_unsubscribe Channels the user cannot unsubscribe from (when preference is cant_unsubscribe), as overridden for this tenant.
Channels opted in by default for this category, as overridden for this tenant.
Channels opted out across all categories for this tenant.
Timestamp when the tenant preference for this category was last updated.
Digest schedule configuration with tenant overrides and original options
Category condition properties with tenant overrides