---
title: "Create Teacher Exercise"
method: POST
path: "/teacher_exercises/"
tags: ["teacher_exercises"]
---

# Create Teacher Exercise

`POST /teacher_exercises/`

Create a new exercise for the teacher.

## Request body

- TeacherExerciseCreateRequest
  - `title` string, nullable
  - `content` string, required
  - `solution` string, nullable
  - `figure_id` string, nullable
  - `solution_figure_id` string, nullable
  - `difficulty` string, nullable
  - `themes` string[]
  - `grade` 'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa', nullable
  - `is_private` boolean
  - `is_saved` boolean
  - `folder_id` string, nullable

## Response `201`

Successful Response

- TeacherExerciseResponse
  - `id` string, required
  - `teacher_id` string, required
  - `title` string, nullable, required
  - `content` string, required
  - `solution` string, nullable, required
  - `figure_id` string, nullable
  - `solution_figure_id` string, nullable
  - `figure_content` string, nullable
  - `figure_solution` string, nullable
  - `difficulty` string, nullable, required
  - `themes` string[], required
  - `source` string, required
  - `subject` 'maths' | 'physique-chimie'
  - `grade` 'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa', nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `is_private` boolean, required
  - `is_saved` boolean, required
  - `folder_id` string, nullable
  - `likes_count` integer

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-07** `0ccba2913cca` — 1 breaking, 1 warning
  - removed the required property `school_year` from the response with the `201` status
  - removed the optional property `is_past` from the response with the `201` status

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher_exercises/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.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
