---
title: "Generate Structured Subject"
method: POST
path: "/student-exams/{exam_id}/generate-structured-subject"
tags: ["student-exams"]
---

# Generate Structured Subject

`POST /student-exams/{exam_id}/generate-structured-subject`

Generate a structured exam subject with individual exercises.
This is the new preferred method that mirrors teacher exam functionality.

## Path parameters

- `exam_id` string, required

## Request body

- GenerateStructuredSubjectRequest
  - `class_level` string, required
  - `chapters` string, required
  - `thematics` string, required
  - `difficulty` integer, required
  - `number_of_exercises` integer, required
  - `exam_title` string, nullable
  - `time_limit` string, nullable

## Response `200`

Successful Response

- GetStructuredExercisesResponse
  - `status` string, required
  - `exercises` object[], 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.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
