Course Audit log
Welcome to Our New API Docs! This is the new home for all things API (previously at Canvas LMS REST API Documentation).
Course Audit log API
Query audit log of course events.
For each endpoint, a compound document is returned. The primary collection of event objects is paginated, ordered by date descending. Secondary collections of courses, users and page_views related to the returned events are also included.
The event data for ConcludedEventData, UnconcludedEventData, PublishedEventData, UnpublishedEventData, DeletedEventData, RestoredEventData, ResetFromEventData, ResetToEventData, CopiedFromEventData, and CopiedToEventData objects will return a empty objects as these do not have any additional log data associated.
A CourseEventLink object looks like:
{
// ID of the course for the event.
"course": 12345,
// ID of the user for the event (who made the change).
"user": 12345,
// ID of the page view during the event if it exists.
"page_view": "e2b76430-27a5-0131-3ca1-48e0eb13f29b",
// ID of the course that this course was copied from. This is only included if
// the event_type is copied_from.
"copied_from": 12345,
// ID of the course that this course was copied to. This is only included if the
// event_type is copied_to.
"copied_to": 12345,
// ID of the SIS batch that triggered the event.
"sis_batch": 12345
}A CourseEvent object looks like:
A CreatedEventData object looks like:
An UpdatedEventData object looks like:
CourseAuditApiController#for_course
GET /api/v1/audit/course/courses/:course_id
Scope: url:GET|/api/v1/audit/course/courses/:course_id
List course change events for a given course.
Request Parameters:
start_time
DateTime
The beginning of the time range from which you want events.
end_time
DateTime
The end of the time range from which you want events.
Returns a list of CourseEvent objects.
CourseAuditApiController#for_account
GET /api/v1/audit/course/accounts/:account_id
Scope: url:GET|/api/v1/audit/course/accounts/:account_id
List course change events for a given account.
Request Parameters:
start_time
DateTime
The beginning of the time range from which you want events.
end_time
DateTime
The end of the time range from which you want events.
Returns a list of CourseEvent objects.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated
Was this helpful?