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

# Add Exercises From Upload

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

Add new exercises to an existing structured exam from uploaded content.
This processes raw LaTeX content using LLM to detect and structure multiple exercises.

## Path parameters

- `exam_id` string, required

## Request body

- AddExercisesFromUploadRequest
  - `content` string, required
  - `images` string[], nullable
  - `diagram_image_urls` string[], nullable

## Response `200`

Successful Response

- object

## 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.dev/excellence-ai/apis/excellence-learning/revisions/c81ed506912f?raw)
