Sections
A Section object looks like:
{
// The unique identifier for the section.
"id": 1,
// The name of the section.
"name": "Section A",
// The sis id of the section. This field is only included if the user has
// permission to view SIS information.
"sis_section_id": "s34643",
// Optional: The integration ID of the section. This field is only included if
// the user has permission to view SIS information.
"integration_id": "3452342345",
// The unique identifier for the SIS import if created through SIS. This field
// is only included if the user has permission to manage SIS information.
"sis_import_id": 47,
// The unique Canvas identifier for the course in which the section belongs
"course_id": 7,
// The unique SIS identifier for the course in which the section belongs. This
// field is only included if the user has permission to view SIS information.
"sis_course_id": "7",
// the start date for the section, if applicable
"start_at": "2012-06-01T00:00:00-06:00",
// the end date for the section, if applicable
"end_at": null,
// Restrict user enrollments to the start and end dates of the section
"restrict_enrollments_to_section_dates": null,
// The unique identifier of the original course of a cross-listed section
"nonxlist_course_id": null,
// optional: the total number of active and invited students in the section
"total_students": 13,
// optional: A list of students that are included in the section. Returned only
// if include[]=students. WARNING: this collection's size is capped (if there
// are an extremely large number of users in the section (thousands) not all of
// them will be returned). If you need to capture all the users in a section
// with certainty or experiencing slow response consider using the paginated
// /api/v1/sections/<section_id>/users endpoint.
"students": null
}List course sections
GET /api/v1/courses/:course_id/sections
Request Parameters:
Parameter
Type
Description
Create course section
POST /api/v1/courses/:course_id/sections
Request Parameters:
Parameter
Type
Description
Cross-list a Section
POST /api/v1/sections/:id/crosslist/:new_course_id
Request Parameters:
Parameter
Type
Description
De-cross-list a Section
DELETE /api/v1/sections/:id/crosslist
Request Parameters:
Parameter
Type
Description
Edit a section
PUT /api/v1/sections/:id
Request Parameters:
Parameter
Type
Description
Get section information
GET /api/v1/courses/:course_id/sections/:id
GET /api/v1/sections/:id
Request Parameters:
Parameter
Type
Description
Delete a section
DELETE /api/v1/sections/:id
List section's users
GET /api/v1/sections/:id/users
Request Parameters:
Parameter
Type
Description
Example Request:
Last updated
Was this helpful?