Enrollment Terms
API for viewing enrollment terms. For all actions, the specified account must be a root account and the caller must have permission to manage the account (when called on non-root accounts, the errorwill be indicate the appropriate root account).
An EnrollmentTerm object looks like:
An EnrollmentTermsList object looks like:
POST /api/v1/accounts/:account_id/terms
POST /api/v1/accounts/:account_id/terms
Scope: url:POST|/api/v1/accounts/:account_id/terms
Create a new enrollment term for the specified account.
Request Parameters:
enrollment_term[name]
string
The name of the term.
enrollment_term[start_at]
DateTime
The day/time the term starts. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z.
enrollment_term[end_at]
DateTime
The day/time the term ends. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z.
enrollment_term[sis_term_id]
string
The unique SIS identifier for the term.
enrollment_term[overrides][enrollment_type][start_at]
DateTime
The day/time the term starts, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment
enrollment_term[overrides][enrollment_type][end_at]
DateTime
The day/time the term ends, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment
Returns an EnrollmentTerm object.
PUT /api/v1/accounts/:account_id/terms/:id
PUT /api/v1/accounts/:account_id/terms/:id
Scope: url:PUT|/api/v1/accounts/:account_id/terms/:id
Update an existing enrollment term for the specified account.
Request Parameters:
enrollment_term[name]
string
The name of the term.
enrollment_term[start_at]
DateTime
The day/time the term starts. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z.
enrollment_term[end_at]
DateTime
The day/time the term ends. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z.
enrollment_term[sis_term_id]
string
The unique SIS identifier for the term.
enrollment_term[overrides][enrollment_type][start_at]
DateTime
The day/time the term starts, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment
enrollment_term[overrides][enrollment_type][end_at]
DateTime
The day/time the term ends, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment
override_sis_stickiness
boolean
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 an EnrollmentTerm object.
DELETE /api/v1/accounts/:account_id/terms/:id
DELETE /api/v1/accounts/:account_id/terms/:id
Scope: url:DELETE|/api/v1/accounts/:account_id/terms/:id
Delete the specified enrollment term.
Returns an EnrollmentTerm object.
GET /api/v1/accounts/:account_id/terms
GET /api/v1/accounts/:account_id/terms
Scope: url:GET|/api/v1/accounts/:account_id/terms
An object with a paginated list of all of the terms in the account.
Request Parameters:
workflow_state[]
string
If set, only returns terms that are in the given state. Defaults to ‘active’.
Allowed values: active
, deleted
, all
include[]
string
Array of additional information to include.
“overrides”
term start/end dates overridden for different enrollment types
“course_count”
the number of courses in each term
Allowed values: overrides
term_name
string
If set, only returns terms that match the given search keyword. Search keyword is matched against term name.
Example Request:
Example Response:
Returns an EnrollmentTermsList object.
GET /api/v1/accounts/:account_id/terms/:id
GET /api/v1/accounts/:account_id/terms/:id
Scope: url:GET|/api/v1/accounts/:account_id/terms/:id
Retrieves the details for an enrollment term in the account. Includes overrides by default.
Example Request:
Returns an EnrollmentTerm object.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated