---
title: "Create Class"
method: POST
path: "/teacher/classes"
tags: ["Teacher"]
---

# Create Class

`POST /teacher/classes`

Create a new class for the current teacher.
Generates a random `class_code` for students to link.

## Request body

- CreateClassBody
  - `name` string, required
  - `school_year` string, nullable
  - `grade` 'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa', nullable

## Response `200`

Successful Response

- unknown

## 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/c407f3b5a05b/schema)
