Account Notifications
An AccountNotification object looks like:
{
// The subject of the notifications
"subject": "Attention Students",
// The message to be sent in the notification.
"message": "This is a test of the notification system.",
// When to send out the notification.
"start_at": "2013-08-28T23:59:00-06:00",
// When to expire the notification.
"end_at": "2013-08-29T23:59:00-06:00",
// The icon to display with the message. Defaults to warning.
"icon": "information",
// (Deprecated) The roles to send the notification to. If roles is not passed
// it defaults to all roles
"roles": ["StudentEnrollment"],
// The roles to send the notification to. If roles is not passed it defaults to
// all roles
"role_ids": [1],
// The author of the notification. Available only to admins using include_all.
"author": {"id":1,"name":"John Doe"}
}GET /api/v1/accounts/:account_id/account_notifications
GET /api/v1/accounts/:account_id/account_notificationsRequest Parameters:
Parameter
Type
Description
Example Request:
GET /api/v1/accounts/:account_id/account_notifications/:id
GET /api/v1/accounts/:account_id/account_notifications/:idExample Request:
POST /api/v1/accounts/:account_id/account_notifications
POST /api/v1/accounts/:account_id/account_notificationsRequest Parameters:
Parameter
Type
Description
Example Request:
Example Response:
PUT /api/v1/accounts/:account_id/account_notifications/:id
PUT /api/v1/accounts/:account_id/account_notifications/:idRequest Parameters:
Parameter
Type
Description
Example Request:
Example Response:
DELETE /api/v1/accounts/:account_id/account_notifications/:id
DELETE /api/v1/accounts/:account_id/account_notifications/:idRequest Parameters:
Parameter
Type
Description
Example Request:
Last updated
Was this helpful?