---
title: "Update Assignment Grade"
method: PUT
path: "/teacher/assignments/{assignment_id}/grade"
tags: ["teacher_assignments"]
---

# Update Assignment Grade

`PUT /teacher/assignments/{assignment_id}/grade`

Set the level the devoir is written for.

Its own level, not that of its classes: a devoir can be given to a class
of another level as revision or to go further, and a devoir made only to
be printed has no class at all.

## Path parameters

- `assignment_id` string, required

## Request body

- UpdateAssignmentGradeRequest — « Non renseigné » is a legitimate answer, hence Optional.
  - `grade` 'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa', 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
  - `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/grade/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/2a0c1636fd3b?raw)
