---
title: "Add New Exercises"
method: POST
path: "/teacher-exams/{exam_id}/subjects/exercises/add"
tags: ["Teacher Exams Subjects"]
---

# Add New Exercises

`POST /teacher-exams/{exam_id}/subjects/exercises/add`

## 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/add`
- Auth: OAuth 2 (password, token URL `api/login`)

Add new exercises to an existing structured exam.
This generates new exercises using the provided parameters and appends them to the existing exercises with new IDs.

## Path parameters

- `exam_id` string, required

## Request body

- AddExerciseRequest
  - `apply_memories` boolean
  - `excluded_memory_ids` string[]
  - `class_level` string, required
  - `chapters` string, required
  - `thematics` string, required
  - `difficulty` integer, required
  - `number_of_exercises` integer, required
  - `additional_thematics` string, nullable

## 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 `apply_memories`
  - added the new optional request property `excluded_memory_ids`

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher-exams/:exam_id/subjects/exercises/add/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)
