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:
Parameter | Type | Description |
---|---|---|
|
| The name of the term. |
|
| The day/time the term starts. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z. |
|
| The day/time the term ends. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z. |
|
| The unique SIS identifier for the term. |
|
| The day/time the term starts, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment |
|
| 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:
Parameter | Type | Description |
---|---|---|
|
| The name of the term. |
|
| The day/time the term starts. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z. |
|
| The day/time the term ends. Accepts times in ISO 8601 format, e.g. 2015-01-10T18:48:00Z. |
|
| The unique SIS identifier for the term. |
|
| The day/time the term starts, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment |
|
| The day/time the term ends, overridden for the given enrollment type. enrollment_type can be one of StudentEnrollment, TeacherEnrollment, TaEnrollment, or DesignerEnrollment |
|
| 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:
Parameter | Type | Description |
---|---|---|
|
| If set, only returns terms that are in the given state. Defaults to ‘active’. Allowed values: |
|
| Array of additional information to include.
Allowed values: |
|
| 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.
© Instructure, Inc. Generated on Wed Nov 6 14:20:06 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated