---
title: "Move Assignments Batch"
method: POST
path: "/teacher/assignments/move-batch"
tags: ["teacher_assignments"]
---

# Move Assignments Batch

`POST /teacher/assignments/move-batch`

## 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/move-batch`
- Auth: OAuth 2
  - Password
  - Token URL: `api/login`
- TypeScript: <https://skmtc.dev/excellence-ai/apis/excellence-learning/docs/teacher/assignments/move-batch/post.ts> (a function with typed inputs; its response is checked against the schema)

File the selected devoirs in one folder, or at the root with no
`folder_id`. The folder must be the teacher's and hold this kind of
material; a folder belongs to a school year, so a selection spanning
two years is refused rather than half-filed.

## Request body

- MoveAssignmentsBatchRequest: « Déplacer dans un dossier » on a selection.
  - `folder_id` string, nullable
  - `assignment_ids` string[]

## Response `200`

Successful Response

- BulkOperationResponse: What went through and what did not. A batch that is refused as a whole — something frozen in the selection, a folder of another year — answers with an error instead; these two lists are for the writes themselves.
  - `done` string[]
  - `failures` BulkOperationFailureResponse[]
    - `id` string, required
    - `title` string, required
    - `error` string, required

## Other responses

- `404`: Resource not found
- `409`: Business rule violated
- `422`: Validation Error

## Changes

> 94 revisions in range; 1 not diffed.

- **2026-09-14** `0a41d91c9d20`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/assignments/move-batch/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/140f785c934b?raw)
