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

# Update Assignment Classes

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

Update the classes assigned to an assignment.

## Path parameters

- `assignment_id` string, required

## Request body

- UpdateAssignmentClassesRequest
  - `class_ids` string[]

## Response `200`

Successful Response

- UpdateAssignmentClassesResponse
  - `status` string, required
  - `class_ids` string[], required
  - `class_names` string[], required

## 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/8d495ed916c6/schema)
