---
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`

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

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/379e4a57dee8?raw)
