Category and Channel within Category
API to update object preferences for a specific notification category.
Authorizations
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
Path Parameters
Used to group similar objects together. Give plural namespace like teams, organizations, and roles.
Unique identifier of the object in your system
notification category slug. You can get this from Notification Categories page on SuprSend dashboard -> Settings page
Query Parameters
to fetch user preferences for a particular tenant
Body
choose one of the options: opt_in if the user has allowed notification in this category and opt_out if user wants to discontinue notification in this category
Add array of channels if user wants to unsubscribe from particular channels in this category. Add channels as email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush
You can either pass opt_out_channels when user opts out from a channel in the category or opt_in_channels when user opts in to a channel in the category. Add channels as email, sms, whatsapp, androidpush, inbox, iospush, slack, webpush
Object's preferred digest schedule for this category. Set to null to fall back to tenant's default.
Override values for category condition properties. Only properties with edit_policy editable can be overridden. The datatype of value must match the property's value_type.
Response
202
preference category name
"Weekly Activity Digest"
unique preference category slug
"weekly-activity-digest"
Description of the notification category.
"Summary of recent activity in your workspace"
default preference of the category
opt_in, opt_out "opt_in"
final preference of the category
opt_in, opt_out "opt_in"
false for categories where default preference is set to can't unsubscribe
true
All available digest schedule options for this category
The currently active digest schedule selection
Category condition properties with overrides