---
title: "Generate Corrections For Exam"
method: POST
path: "/teacher-exams/{exam_id}/subjects/exercises/generate-corrections"
tags: ["Teacher Exams Subjects"]
---

# Generate Corrections For Exam

`POST /teacher-exams/{exam_id}/subjects/exercises/generate-corrections`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher-exams/{exam_id}/subjects/exercises/generate-corrections`
- Auth: OAuth 2 (password, token URL `api/login`)

Generate solutions for exercises that don't already have solutions and persist as a new version.

## Path parameters

- `exam_id` string, required

## Request body

- GenerateCorrectionsRequest
  - `apply_memories` boolean
  - `excluded_memory_ids` string[]
  - `custom_instructions` string, nullable
  - `regenerate_all` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-09-30** `518c1e6178a3`: 2 info
  - added the new optional request property `anyOf[subschema #1: GenerateCorrectionsRequest]/apply_memories`
  - added the new optional request property `anyOf[subschema #1: GenerateCorrectionsRequest]/excluded_memory_ids`

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher-exams/:exam_id/subjects/exercises/generate-corrections/post.md)

---

[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.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
