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

# Update Teacher Assignment

`PUT /teacher/assignments/{assignment_id}`

Update an existing teacher assignment.
If exercise_ids are changed, also update any existing student sessions.

## Path parameters

- `assignment_id` string, required

## Request body

- TeacherAssignmentUpdate
  - `title` string, nullable
  - `exercise_ids` string[], nullable
  - `start_date` string, date-time, nullable
  - `due_date` string, date-time, nullable
  - `binary_grading` boolean, nullable
  - `randomize_order` boolean, nullable
  - `chat_policy` object, nullable
  - `chat_scoring_policy` object, nullable
  - `retry_policy` object, nullable
  - `justification_required` object, nullable

## Response `200`

Successful Response

- RoutersExerciseAssignmentsBasicResponse
  - `status` string, required
  - `message` string, required
  - `assignment_id` string, nullable

## Other responses

- `422` — Validation Error

---

[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)
