Function headless_lms_server::controllers::main_frontend::courses::teacher_reset_course_progress_for_everyone
source · pub async fn teacher_reset_course_progress_for_everyone(
course_id: Path<Uuid>,
pool: Data<PgPool>,
user: AuthUser
) -> ControllerResult<Json<bool>>
Expand description
DELETE /api/v0/main-frontend/courses/${course.id}/teacher-reset-course-progress-for-everyone
- Can be used by teachers to reset the course progress for all students. Only works when the course is a draft and not published to students. Cannot be used to delete a course that some students have taken.
Deletes submissions, user exercise states, and peer reviews etc. for all the course instances of this course.