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

# Update Assignment Settings

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

Update assignment settings (randomize_order, binary_grading, typing_enabled, autonomy_mode).

## Path parameters

- `assignment_id` string, required

## Request body

- UpdateSettingsRequest
  - `randomize_order` boolean, nullable
  - `binary_grading` boolean, nullable
  - `typing_enabled` boolean, nullable
  - `typed_work_allowed` boolean, nullable
  - `partial_grade_percentage` number, nullable
  - `autonomy_mode` boolean, nullable
  - `autonomy_attempts_before_solution` 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
  - `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
  - `removed_exercise_ids` string[], nullable
  - `new_exercise_ids` string[], nullable
  - `imported_exercises` object[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `8d495ed916c6` — 1 info
  - added the new optional request property `autonomy_attempts_before_solution`

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/assignments/:assignment_id/settings/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-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/ef67479ed898/schema)
