---
title: "Apply Exam Chat Action"
method: POST
path: "/teacher-exams/{exam_id}/subjects/exercises/chat-action"
tags: ["Teacher Exams Subjects"]
---

# Apply Exam Chat Action

`POST /teacher-exams/{exam_id}/subjects/exercises/chat-action`

Apply one teacher-confirmed chat proposal atomically as a new version.

## Path parameters

- `exam_id` string, required

## Request body

- ExamChatActionRequest
  - `action` 'add' | 'edit' | 'remove', required
  - `exercise_ids` integer[]
  - `exercises` ExamChatExercisePayload[]
    - `exercise_id` integer, nullable
    - `title` string, nullable
    - `statement` string, nullable
    - `solution` string, nullable
    - `points` number, nullable
    - `figure` string, nullable
    - `solution_figure` string, nullable
    - `remove_figure` boolean
    - `remove_solution_figure` boolean

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