---
title: "Submit Self Study Answer"
method: POST
path: "/knowledge-quiz/my-courses/attempts/{attempt_id}/answer"
tags: ["knowledge-quiz"]
---

# Submit Self Study Answer

`POST /knowledge-quiz/my-courses/attempts/{attempt_id}/answer`

Submit an answer for a self-study quiz attempt.
Uses the attempt's variation selection to check correctness.

## Path parameters

- `attempt_id` string, required

## Request body

- SubmitAnswerRequest — Request to submit an answer for a question.
  - `question_id` string, required
  - `selected_answer_index` integer, required

## Response `200`

Successful Response

- SubmitAnswerResponse — Response after submitting an answer.
  - `is_correct` boolean, required
  - `correct_answer_index` integer, nullable
  - `explanation` string, nullable

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