---
title: "Update Empty Devoir Policy"
method: PUT
path: "/teacher/assignments/{assignment_id}/empty-devoir-policy"
tags: ["teacher_assignments"]
---

# Update Empty Devoir Policy

`PUT /teacher/assignments/{assignment_id}/empty-devoir-policy`

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

Keep the chat or attempts chosen on a devoir that has no exercise yet,
for the first exercises to inherit, whichever way they arrive.

## Path parameters

- `assignment_id` string, required

## Request body

- UpdateEmptyDevoirPolicyRequest
  - `kind` 'chat' | 'retry', required
  - `value` integer, nullable

## 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
  - `chat_scoring_policy` object, nullable
  - `retry_policy` object, nullable

## Other responses

- `422`: Validation Error

## Changes

> 91 revisions in range; 1 not diffed.

- **2026-11-09** `5ff4988d949e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/assignments/:assignment_id/empty-devoir-policy/put.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/5ff4988d949e?raw)
