---
title: "Create Teacher Class"
method: POST
path: "/admin/teachers/{teacher_id}/classes"
tags: ["admin"]
---

# Create Teacher Class

`POST /admin/teachers/{teacher_id}/classes`

Create a class on behalf of a teacher, optionally with its student roster.
The class is indistinguishable from one the teacher created themselves.

## Path parameters

- `teacher_id` string, required

## Request body

- AdminCreateTeacherClassRequest
  - `name` string, required
  - `grade` 'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa', nullable
  - `students` AdminRosterStudent[]
    - `first_name` string, required
    - `last_name` string, required
    - `email` string, email, nullable
  - `send_invitations` boolean

## Response `200`

Successful Response

- AdminTeacherClassResponse
  - `class_id` string, required
  - `class_code` string, required
  - `name` string, required
  - `grade` string, nullable
  - `subject` string, required
  - `school_year` string, nullable
  - `teacher_id` string, required
  - `teacher_email` string, required
  - `students_added` integer, required
  - `students_skipped` integer, required
  - `invitations_sent` integer, required
  - `warnings` string[], required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `8d495ed916c6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/admin/teachers/:teacher_id/classes/post.md)

---

[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)
