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

# Apply Recorrection

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

Apply recorrection results to the database.
Updates the last submission attempt's correctness and feedback in-place.
Does NOT increment attempt_count.

## Path parameters

- `assignment_id` string, required

## Request body

- ApplyRecorrectionRequest
  - `items` ApplyRecorrectionItem[], required
    - `session_id` string, required
    - `exercise_id` string, required
    - `new_correctness` 'correct' | 'partial' | 'wrong', required
    - `new_feedback` string, required

## Response `200`

Successful Response

- ApplyRecorrectionResponse
  - `applied_count` integer, 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)
