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

# Import Teacher Exercises To Assignment

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

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher/assignments/{assignment_id}/import-teacher-exercises`
- Auth: OAuth 2 (password, token URL `api/login`)

Import exercises from teacher's exercise library to an assignment.
This copies the content and solution from selected teacher exercises.

## Path parameters

- `assignment_id` string, required

## Request body

- ImportTeacherExercisesRequest
  - `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
    - `estimated_minutes_pending` boolean
  - `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
    - `estimated_minutes_pending` boolean
  - `removed_exercise_ids` string[], nullable
  - `new_exercise_ids` string[], nullable
  - `imported_exercises` object[], nullable

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-09-16** `9f813eb42d6f`: 2 info
  - added the optional property `added_exercises/anyOf[subschema #1]/items/estimated_minutes_pending` to the response with the `200` status
  - added the optional property `exercises/anyOf[subschema #1]/items/estimated_minutes_pending` to the response with the `200` status
- **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

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/assignments/:assignment_id/import-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/379e4a57dee8?raw)
