---
title: "Create Topic"
method: POST
path: "/admin/topics"
tags: ["admin"]
---

# Create Topic

`POST /admin/topics`

Create a new topic with provided fields.
Return the created topic details.

## Request body

- TopicCreate — Fields needed to create a new topic.
  - `title` string, required
  - `prerequisite` string[]
  - `latex_course` string, nullable
  - `latex_exercise` string, nullable
  - `latex_correction` string, nullable
  - `images_course` string[]
  - `images_exercise` string[]
  - `images_correction` string[]

## Response `200`

Successful Response

- TopicDetail — Detailed topic info for editing.
  - `id` string, required
  - `title` string, required
  - `latex_course` string, nullable
  - `latex_exercise` string, nullable
  - `latex_correction` string, nullable
  - `images_course` string[]
  - `images_exercise` string[]
  - `images_correction` string[]
  - `status` 'undetermined' | 'wrong' | 'to_edit' | 'ready'

## 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-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
