---
title: "Update Flashcard"
method: PUT
path: "/teacher/courses/{course_id}/flashcards/{flashcard_id}"
tags: ["Teacher Courses"]
---

# Update Flashcard

`PUT /teacher/courses/{course_id}/flashcards/{flashcard_id}`

Update the front and/or back content of a flashcard within a teacher course.

Allows updating the front and back content of a flashcard that belongs
to a course owned by the authenticated teacher.

## Path parameters

- `course_id` string, required
- `flashcard_id` string, required

## Request body

- UpdateFlashcardRequest — Request model for updating flashcard fields.
  - `front` string, nullable
  - `back` string, nullable

## Response `200`

Successful Response

- Flashcard — Represents a flashcard generated from a course.
  - `_id` string
  - `course_id` string, required
  - `unit_id` string, nullable
  - `user_id` string, required
  - `front` string, required
  - `back` string, required
  - `revision_type` 'unit' | 'course_global', 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/e75413b9576a?raw)
