---
title: "Upload Exam Subject"
method: POST
path: "/student-exams/{exam_id}/upload-subject"
tags: ["student-exams"]
---

# Upload Exam Subject

`POST /student-exams/{exam_id}/upload-subject`

## 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/student-exams/{exam_id}/upload-subject`
- Auth: OAuth 2 (password, token URL `api/login`)

Upload one or more images containing the exam subject.
Uses base64 encoded content for compatibility with both web and mobile.

## Path parameters

- `exam_id` string, required

## Request body

- FilesUploadRequest
  - `files` RoutersStudentExamsFileUploadRequest[], required
    - `file_content` string, required
    - `file_name` string, required
    - `content_type` string, required

## Response `200`

Successful Response

- SimpleResponse
  - `status` string, required
  - `message` string, 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/379e4a57dee8?raw)
