---
title: "Add Exercises To Assignment"
method: POST
path: "/teacher/assignments/{assignment_id}/exercises"
tags: ["teacher_assignments"]
---

# Add Exercises To Assignment

`POST /teacher/assignments/{assignment_id}/exercises`

Add exercises to an assignment.

## Path parameters

- `assignment_id` string, required

## Request body

- AddExercisesRequest
  - `exercise_ids` string[], required

## Response `200`

Successful Response

- AutoSaveResponse
  - `status` string
  - `message` string
  - `updated_at` string, date-time, required
  - `exercise_ids` string[], nullable
  - `exercises` AssignmentExerciseStub[], nullable
    - `id` string, required
    - `order` integer, required
    - `source` 'teacher' | 'public' | 'calcul_template' | 'annale' | 'unknown'
    - `title` string, nullable
    - `original_id` string, nullable
    - `source_public_exercise_id` string, nullable
    - `source_annales_exercise_id` string, nullable
    - `estimated_minutes` integer, nullable
  - `added_exercises` AssignmentExerciseStub[], nullable
    - `id` string, required
    - `order` integer, required
    - `source` 'teacher' | 'public' | 'calcul_template' | 'annale' | 'unknown'
    - `title` string, nullable
    - `original_id` string, nullable
    - `source_public_exercise_id` string, nullable
    - `source_annales_exercise_id` string, nullable
    - `estimated_minutes` integer, nullable
  - `removed_exercise_ids` string[], nullable
  - `new_exercise_ids` string[], nullable
  - `imported_exercises` object[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-05** `437cd8414e9e` — 2 info
  - added the optional property `added_exercises/anyOf[subschema #1]/items/estimated_minutes` to the response with the `200` status
  - added the optional property `exercises/anyOf[subschema #1]/items/estimated_minutes` to the response with the `200` status

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/assignments/:assignment_id/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)
