Sections
API for accessing section information.
A Section object looks like:
GET /api/v1/courses/:course_id/sections
GET /api/v1/courses/:course_id/sections
Scope: url:GET|/api/v1/courses/:course_id/sections
A paginated list of the list of sections for this course.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
|
Allowed values: |
|
| When included, searches course sections for the term. Returns only matching results. Term must be at least 2 characters. |
Returns a list of Section objects.
POST /api/v1/courses/:course_id/sections
POST /api/v1/courses/:course_id/sections
Scope: url:POST|/api/v1/courses/:course_id/sections
Creates a new section for this course.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The name of the section |
|
| The sis ID of the section. Must have manage_sis permission to set. This is ignored if caller does not have permission to set. |
|
| The integration_id of the section. Must have manage_sis permission to set. This is ignored if caller does not have permission to set. |
|
| Section start date in ISO8601 format, e.g. 2011-01-01T01:00Z |
|
| Section end date in ISO8601 format. e.g. 2011-01-01T01:00Z |
|
| Set to true to restrict user enrollments to the start and end dates of the section. |
|
| When true, will first try to re-activate a deleted section with matching sis_section_id if possible. |
Returns a Section object.
POST /api/v1/sections/:id/crosslist/:new_course_id
POST /api/v1/sections/:id/crosslist/:new_course_id
Scope: url:POST|/api/v1/sections/:id/crosslist/:new_course_id
Move the Section to another course. The new course may be in a different account (department), but must belong to the same root account (institution).
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| Default is true. If false, any fields containing “sticky” changes will not be updated. See SIS CSV Format documentation for information on which fields can have SIS stickiness |
Returns a Section object.
SectionsController#uncrosslist
DELETE /api/v1/sections/:id/crosslist
DELETE /api/v1/sections/:id/crosslist
Scope: url:DELETE|/api/v1/sections/:id/crosslist
Undo cross-listing of a Section, returning it to its original course.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| Default is true. If false, any fields containing “sticky” changes will not be updated. See SIS CSV Format documentation for information on which fields can have SIS stickiness |
Returns a Section object.
PUT /api/v1/sections/:id
PUT /api/v1/sections/:id
Scope: url:PUT|/api/v1/sections/:id
Modify an existing section.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The name of the section |
|
| The sis ID of the section. Must have manage_sis permission to set. |
|
| The integration_id of the section. Must have manage_sis permission to set. |
|
| Section start date in ISO8601 format, e.g. 2011-01-01T01:00Z |
|
| Section end date in ISO8601 format. e.g. 2011-01-01T01:00Z |
|
| Set to true to restrict user enrollments to the start and end dates of the section. |
|
| Default is true. If false, any fields containing “sticky” changes will not be updated. See SIS CSV Format documentation for information on which fields can have SIS stickiness |
Returns a Section object.
GET /api/v1/courses/:course_id/sections/:id
GET /api/v1/courses/:course_id/sections/:id
Scope: url:GET|/api/v1/courses/:course_id/sections/:id
GET /api/v1/sections/:id
GET /api/v1/sections/:id
Scope: url:GET|/api/v1/sections/:id
Gets details about a specific section
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
|
Allowed values: |
Returns a Section object.
DELETE /api/v1/sections/:id
DELETE /api/v1/sections/:id
Scope: url:DELETE|/api/v1/sections/:id
Delete an existing section. Returns the former Section.
Returns a Section object.
© Instructure, Inc. Generated on Wed Nov 6 14:20:09 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated