import { type EnrollUserParams } from "https://deno.land/x/gesso@v0.1.2/types/params.ts";
Properties
The start time of the enrollment, in ISO8601 format. e.g. 2012-04-18T23:08:51Z
The end time of the enrollment, in ISO8601 format. e.g. 2012-04-18T23:08:51Z
Allowed values: StudentEnrollment, TeacherEnrollment, TaEnrollment, ObserverEnrollment, DesignerEnrollment
The ID of the course section to enroll the student in. If the section-specific URL is used, this argument is redundant and will be ignored.
If set, the enrollment will only allow the user to see and interact with users enrolled in the section given by course_section_id. For teachers and TAs, this includes grading privileges. Section-limited students will not see any users (including teachers and TAs) not enrolled in their sections. Users may have other enrollments that grant privileges to multiple sections in the same course.
If true, a notification will be sent to the enrolled user. Notifications are not sent by default.
If the current user is not allowed to manage enrollments in this course, but the course allows self-enrollment, the user can self- enroll as a student in the default section by passing in a valid code. When self-enrolling, the user_id must be 'self'. The enrollment_state will be set to 'active' and all other arguments will be ignored.
If true, marks the enrollment as a self-enrollment, which gives students the ability to drop the course if desired. Defaults to false.