Classes & Enrollment

Create and manage classes, assignments, and student enrollment.

POST /++add_assignment Add assignment Creates a new assignment: links one or more quizzes to a class, with instructions and an optional due date. POST /++add_class Add class Creates a new class for the current teacher. DELETE /++delete_assignment Delete assignment Deletes an assignment belonging to the current teacher. DELETE /++delete_class Delete class Deletes a class belonging to the current teacher. GET /++get_assignments Get assignments Returns either one specific assignment (by assignment_id) or the full list of assignments belonging to the current teacher. GET /++get_class_quiz_history Get class quiz history Teacher-facing view of one class's quiz results: every actively enrolled student's completed assignments, aggregated together. GET /++get_classes Get classes Returns either one specific class (by class_id) or the full list of classes belonging to the current teacher. GET /++get_enrollments Get enrollments Teacher-facing view of class rosters: lists the students enrolled in the current teacher's classes, optionally filtered to one class. POST /++join_class Join class A logged-in student enrolls themselves via a joining code. PATCH /++update_assignment Update assignment Updates an existing assignment's details (title, instructions, linked quizzes, or due date). PATCH /++update_class Update class Updates an existing class's details (title, topic, capacity, or year level). PATCH /++update_enrollment Update enrollment Toggles a student's enrollment in a class between Active and Inactive. Teachers cannot create or delete enrollments here - only the student or parent can initiate those.