Function headless_lms_server::controllers::main_frontend::courses::teacher_reset_course_progress_for_themselves
source · pub async fn teacher_reset_course_progress_for_themselves(
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-themselves
- Allows a teacher to reset the course progress for themselves. Cannot be used to reset the course for others.
Deletes submissions, user exercise states, and peer reviews etc. for all the course instances of this course.