Notification Preferences
A NotificationPreference object looks like:
{
"href": "https://canvas.instructure.com/users/1/communication_channels/email/student@example.edu/notification_preferences/new_announcement",
// The notification this preference belongs to
"notification": "new_announcement",
// The category of that notification
"category": "announcement",
// How often to send notifications to this communication channel for the given
// notification. Possible values are 'immediately', 'daily', 'weekly', and
// 'never'
"frequency": "daily"
}List preferences
GET /api/v1/users/:user_id/communication_channels/:communication_channel_id/notification_preferences
GET /api/v1/users/:user_id/communication_channels/:type/:address/notification_preferences
List of preference categories
GET /api/v1/users/:user_id/communication_channels/:communication_channel_id/notification_preference_categories
Get a preference
GET /api/v1/users/:user_id/communication_channels/:communication_channel_id/notification_preferences/:notification
GET /api/v1/users/:user_id/communication_channels/:type/:address/notification_preferences/:notification
Update a preference
PUT /api/v1/users/self/communication_channels/:communication_channel_id/notification_preferences/:notification
PUT /api/v1/users/self/communication_channels/:type/:address/notification_preferences/:notification
Request Parameters:
Parameter
Type
Description
Update preferences by category
PUT /api/v1/users/self/communication_channels/:communication_channel_id/notification_preference_categories/:category
Request Parameters:
Parameter
Type
Description
Update multiple preferences
PUT /api/v1/users/self/communication_channels/:communication_channel_id/notification_preferences
PUT /api/v1/users/self/communication_channels/:type/:address/notification_preferences
Request Parameters:
Parameter
Type
Description
Last updated
Was this helpful?