Section
- class canvasapi.section.Section(requester, attributes)
- Parameters:
requester (
canvasapi.requester.Requester) – The requester to pass HTTP requests through.attributes (dict) – The JSON object to build this object with.
- cross_list_section(new_course, **kwargs)
Move the Section to another course.
- Calls:
- Parameters:
new_course (
canvasapi.course.Courseor int) – The object or ID of the new course.- Return type:
- decross_list_section(**kwargs)
Undo cross-listing of a section.
- Calls:
- Return type:
- delete(**kwargs)
Delete a target section.
- Calls:
- Return type:
- edit(**kwargs)
Edit contents of a target section.
- Calls:
- Return type:
- enroll_user(user, **kwargs)
Create a new user enrollment for a course or a section.
- Calls:
- Parameters:
user (
canvasapi.user.Useror int) – The object or ID of the user to enroll in this course.- Return type:
- get_assignment_override(assignment, **kwargs)
Return override for the specified assignment for this section.
- Parameters:
assignment (
canvasapi.assignment.Assignmentor int) – The assignment to get an override for- Calls:
GET /api/v1/sections/:course_section_id/assignments/:assignment_id/override
- Return type:
- get_enrollments(**kwargs)
List all of the enrollments for the current user.
- get_multiple_submissions(**kwargs)
List submissions for multiple assignments. Get all existing submissions for a given set of students and assignments.
- submissions_bulk_update(**kwargs)
Update the grading and comments on multiple student’s assignment submissions in an asynchronous job.