---
title: "Update Exercise"
method: PUT
path: "/teacher-exams/{exam_id}/subjects/exercises/{exercise_id}"
tags: ["Teacher Exams Subjects"]
---

# Update Exercise

`PUT /teacher-exams/{exam_id}/subjects/exercises/{exercise_id}`

Update an entire exercise with new content.

## Path parameters

- `exam_id` string, required
- `exercise_id` integer, required

## Request body

- UpdateExerciseRequest
  - `title` string, nullable
  - `content` string, nullable
  - `points` number, nullable
  - `solution` string, nullable
  - `keep_solution` boolean, nullable
  - `regenerate_solution` boolean, nullable
  - `figure_id` string, nullable
  - `solution_figure_id` string, nullable

## Response `200`

Successful Response

- object

## 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.dev/excellence-ai/apis/excellence-learning/revisions/86793aa823ea?raw)
