Account Calendars
API for viewing and toggling settings of account calendars.
An account calendar is available for each account in Canvas. All account calendars are hidden by default, but administrators with the manage_account_calendar_visibility
permission may set calendars as visible. Administrators with the manage_account_calendar_events
permission can create events in visible account calendars, and users associated with an account can add the calendar and see its events (if the calendar is visible). Events on calendars set as auto_subscribe
calendars will appear on users' calendars even if they do not manually add it.
An AccountCalendar object looks like:
AccountCalendarsApiController#index
GET /api/v1/account_calendars
GET /api/v1/account_calendars
Scope: url:GET|/api/v1/account_calendars
Returns a paginated list of account calendars available to the current user. Includes visible account calendars where the user has an account association.
Request Parameters:
Example Request:
Returns a list of AccountCalendar objects.
AccountCalendarsApiController#show
GET /api/v1/account_calendars/:account_id
GET /api/v1/account_calendars/:account_id
Scope: url:GET|/api/v1/account_calendars/:account_id
Get details about a specific account calendar.
Example Request:
Returns an AccountCalendar object.
AccountCalendarsApiController#update
PUT /api/v1/account_calendars/:account_id
PUT /api/v1/account_calendars/:account_id
Scope: url:PUT|/api/v1/account_calendars/:account_id
Set an account calendar’s visibility and auto_subscribe values. Requires the ‘manage_account_calendar_visibility` permission on the account.
Request Parameters:
Example Request:
Returns an AccountCalendar object.
AccountCalendarsApiController#bulk_update
PUT /api/v1/accounts/:account_id/account_calendars
PUT /api/v1/accounts/:account_id/account_calendars
Scope: url:PUT|/api/v1/accounts/:account_id/account_calendars
Set visibility and/or auto_subscribe on many calendars simultaneously. Requires the ‘manage_account_calendar_visibility` permission on the account.
Accepts a JSON array of objects containing 2-3 keys each: ‘id` (the account’s id, required), ‘visible` (a boolean indicating whether the account calendar is visible), and `auto_subscribe` (a boolean indicating whether users should see these events in their calendar without manually subscribing).
Returns the count of updated accounts.
Example Request:
AccountCalendarsApiController#all_calendars
GET /api/v1/accounts/:account_id/account_calendars
GET /api/v1/accounts/:account_id/account_calendars
Scope: url:GET|/api/v1/accounts/:account_id/account_calendars
Returns a paginated list of account calendars for the provided account and its first level of sub-accounts. Includes hidden calendars in the response. Requires the ‘manage_account_calendar_visibility` permission.
Request Parameters:
Example Request:
Returns a list of AccountCalendar objects.
AccountCalendarsApiController#visible_calendars_count
GET /api/v1/accounts/:account_id/visible_calendars_count
GET /api/v1/accounts/:account_id/visible_calendars_count
Scope: url:GET|/api/v1/accounts/:account_id/visible_calendars_count
Returns the number of visible account calendars.
Example Request:
© Instructure, Inc. Generated on Wed Nov 6 14:20:04 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated