Blackout Dates
API for accessing blackout date information.
A BlackoutDate object looks like:
GET /api/v1/courses/:course_id/blackout_dates
GET /api/v1/courses/:course_id/blackout_dates
Scope: url:GET|/api/v1/courses/:course_id/blackout_dates
GET /api/v1/accounts/:account_id/blackout_dates
GET /api/v1/accounts/:account_id/blackout_dates
Scope: url:GET|/api/v1/accounts/:account_id/blackout_dates
Returns the list of blackout dates for the current context.
Returns a list of BlackoutDate objects.
GET /api/v1/courses/:course_id/blackout_dates/:id
GET /api/v1/courses/:course_id/blackout_dates/:id
Scope: url:GET|/api/v1/courses/:course_id/blackout_dates/:id
GET /api/v1/accounts/:account_id/blackout_dates/:id
GET /api/v1/accounts/:account_id/blackout_dates/:id
Scope: url:GET|/api/v1/accounts/:account_id/blackout_dates/:id
Returns the blackout date with the given id.
Returns a BlackoutDate object.
GET /api/v1/courses/:course_id/blackout_dates/new
GET /api/v1/courses/:course_id/blackout_dates/new
Scope: url:GET|/api/v1/courses/:course_id/blackout_dates/new
GET /api/v1/accounts/:account_id/blackout_dates/new
GET /api/v1/accounts/:account_id/blackout_dates/new
Scope: url:GET|/api/v1/accounts/:account_id/blackout_dates/new
Initialize an unsaved Blackout Date for the given context.
Returns a BlackoutDate object.
BlackoutDatesController#create
POST /api/v1/courses/:course_id/blackout_dates
POST /api/v1/courses/:course_id/blackout_dates
Scope: url:POST|/api/v1/courses/:course_id/blackout_dates
POST /api/v1/accounts/:account_id/blackout_dates
POST /api/v1/accounts/:account_id/blackout_dates
Scope: url:POST|/api/v1/accounts/:account_id/blackout_dates
Create a blackout date for the given context.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The start date of the blackout date. |
|
| The end date of the blackout date. |
|
| The title of the blackout date. |
Returns a BlackoutDate object.
BlackoutDatesController#update
PUT /api/v1/courses/:course_id/blackout_dates/:id
PUT /api/v1/courses/:course_id/blackout_dates/:id
Scope: url:PUT|/api/v1/courses/:course_id/blackout_dates/:id
PUT /api/v1/accounts/:account_id/blackout_dates/:id
PUT /api/v1/accounts/:account_id/blackout_dates/:id
Scope: url:PUT|/api/v1/accounts/:account_id/blackout_dates/:id
Update a blackout date for the given context.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The start date of the blackout date. |
|
| The end date of the blackout date. |
|
| The title of the blackout date. |
Returns a BlackoutDate object.
BlackoutDatesController#destroy
DELETE /api/v1/courses/:course_id/blackout_dates/:id
DELETE /api/v1/courses/:course_id/blackout_dates/:id
Scope: url:DELETE|/api/v1/courses/:course_id/blackout_dates/:id
DELETE /api/v1/accounts/:account_id/blackout_dates/:id
DELETE /api/v1/accounts/:account_id/blackout_dates/:id
Scope: url:DELETE|/api/v1/accounts/:account_id/blackout_dates/:id
Delete a blackout date for the given context.
Returns a BlackoutDate object.
BlackoutDatesController#bulk_update
PUT /api/v1/courses/:course_id/blackout_dates
PUT /api/v1/courses/:course_id/blackout_dates
Scope: url:PUT|/api/v1/courses/:course_id/blackout_dates
Create, update, and delete blackout dates to sync the db with the incoming data.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
|
|
© Instructure, Inc. Generated on Wed Nov 6 14:20:05 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated