---
title: "Update Qcm"
method: PUT
path: "/teacher/courses/{course_id}/qcms/{qcm_id}"
tags: ["Teacher Courses"]
---

# Update Qcm

`PUT /teacher/courses/{course_id}/qcms/{qcm_id}`

Update the question, options, correct answer, and/or explanation of a QCM within a teacher course.

Allows updating QCM fields for a QCM that belongs to a course owned by the authenticated teacher.

## Path parameters

- `course_id` string, required
- `qcm_id` string, required

## Request body

- UpdateQCMRequest — Request model for updating QCM fields.
  - `question` string, nullable
  - `options` string[], nullable
  - `correct_answer_index` integer, nullable
  - `explanation` string, nullable

## Response `200`

Successful Response

- QCM — Represents a multiple-choice question generated from a course. QCM = Questionnaire à Choix Multiples (Multiple Choice Questions)
  - `_id` string
  - `course_id` string, required
  - `unit_id` string, nullable
  - `user_id` string, required
  - `question` string, required
  - `options` string[], required
  - `correct_answer_index` integer, required
  - `explanation` string, nullable
  - `created_at` string, date-time

## 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/2a0c1636fd3b?raw)
