---
title: "Run Recorrection"
method: POST
path: "/admin/assignments/{assignment_id}/run-recorrection"
tags: ["Admin - Assignments"]
---

# Run Recorrection

`POST /admin/assignments/{assignment_id}/run-recorrection`

Preview recorrection for submitted exercises in an assignment.
Reruns check_solution() on existing submissions without modifying the DB.

Without a body, every submission in the assignment is re-corrected. When
`scope` is provided, only the listed (session_id, exercise_id) pairs are
re-corrected, which keeps the request fast enough to avoid timing out.

## Path parameters

- `assignment_id` string, required

## Request body

- RunRecorrectionRequest
  - `scope` RecorrectionScopeItem[], nullable
    - `session_id` string, required
    - `exercise_id` string, nullable

## Response `200`

Successful Response

- RecorrectionPreviewResponse
  - `assignment_title` string, required
  - `total_submissions` integer, required
  - `results` RecorrectionResult[], required
    - `session_id` string, required
    - `exercise_id` string, required
    - `student_name` string, required
    - `student_email` string, required
    - `old_correctness` string, required
    - `old_feedback` string, required
    - `new_correctness` string, required
    - `new_feedback` string, required
    - `changed` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
