Learning Object Dates
API for accessing date-related attributes on assignments, quizzes, modules, discussions, pages, and files. Note that support for files is not yet available.
A LearningObjectDates object looks like:
LearningObjectDatesController#show
GET /api/v1/courses/:course_id/modules/:context_module_id/date_details
GET /api/v1/courses/:course_id/modules/:context_module_id/date_details
Scope: url:GET|/api/v1/courses/:course_id/modules/:context_module_id/date_details
GET /api/v1/courses/:course_id/assignments/:assignment_id/date_details
GET /api/v1/courses/:course_id/assignments/:assignment_id/date_details
Scope: url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/date_details
GET /api/v1/courses/:course_id/quizzes/:quiz_id/date_details
GET /api/v1/courses/:course_id/quizzes/:quiz_id/date_details
Scope: url:GET|/api/v1/courses/:course_id/quizzes/:quiz_id/date_details
GET /api/v1/courses/:course_id/discussion_topics/:discussion_topic_id/date_details
GET /api/v1/courses/:course_id/discussion_topics/:discussion_topic_id/date_details
Scope: url:GET|/api/v1/courses/:course_id/discussion_topics/:discussion_topic_id/date_details
GET /api/v1/courses/:course_id/pages/:url_or_id/date_details
GET /api/v1/courses/:course_id/pages/:url_or_id/date_details
Scope: url:GET|/api/v1/courses/:course_id/pages/:url_or_id/date_details
GET /api/v1/courses/:course_id/files/:attachment_id/date_details
GET /api/v1/courses/:course_id/files/:attachment_id/date_details
Scope: url:GET|/api/v1/courses/:course_id/files/:attachment_id/date_details
Get a learning object’s date-related information, including due date, availability dates, override status, and a paginated list of all assignment overrides for the item.
Returns a LearningObjectDates object.
LearningObjectDatesController#update
PUT /api/v1/courses/:course_id/assignments/:assignment_id/date_details
PUT /api/v1/courses/:course_id/assignments/:assignment_id/date_details
Scope: url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/date_details
PUT /api/v1/courses/:course_id/quizzes/:quiz_id/date_details
PUT /api/v1/courses/:course_id/quizzes/:quiz_id/date_details
Scope: url:PUT|/api/v1/courses/:course_id/quizzes/:quiz_id/date_details
PUT /api/v1/courses/:course_id/discussion_topics/:discussion_topic_id/date_details
PUT /api/v1/courses/:course_id/discussion_topics/:discussion_topic_id/date_details
Scope: url:PUT|/api/v1/courses/:course_id/discussion_topics/:discussion_topic_id/date_details
PUT /api/v1/courses/:course_id/pages/:url_or_id/date_details
PUT /api/v1/courses/:course_id/pages/:url_or_id/date_details
Scope: url:PUT|/api/v1/courses/:course_id/pages/:url_or_id/date_details
PUT /api/v1/courses/:course_id/files/:attachment_id/date_details
PUT /api/v1/courses/:course_id/files/:attachment_id/date_details
Scope: url:PUT|/api/v1/courses/:course_id/files/:attachment_id/date_details
Updates date-related information for learning objects, including due date, availability dates, override status, and assignment overrides.
Returns 204 No Content response code if successful.
Request Parameters:
due_at
DateTime
The learning object’s due date. Not applicable for ungraded discussions, pages, and files.
unlock_at
DateTime
The learning object’s unlock date. Must be before the due date if there is one.
lock_at
DateTime
The learning object’s lock date. Must be after the due date if there is one.
only_visible_to_overrides
boolean
Whether the learning object is only assigned to students who are targeted by an override.
assignment_overrides[]
Array
List of overrides to apply to the learning object. Overrides that already exist should include an ID and will be updated if needed. New overrides will be created for overrides in the list without an ID. Overrides not included in the list will be deleted. Providing an empty list will delete all of the object’s overrides. Keys for each override object can include: ‘id’, ‘title’, ‘due_at’, ‘unlock_at’, ‘lock_at’, ‘student_ids’, and ‘course_section_id’, ‘course_id’, ‘noop_id’, and ‘unassign_item’.
Example Request:
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated