---
title: "Complete Attempt"
method: POST
path: "/knowledge-quiz/attempts/{attempt_id}/complete"
tags: ["knowledge-quiz"]
---

# Complete Attempt

`POST /knowledge-quiz/attempts/{attempt_id}/complete`

Complete a quiz attempt and calculate the final score.

## Path parameters

- `attempt_id` string, required

## Response `200`

Successful Response

- CompleteAttemptResponse — Response after completing a quiz attempt.
  - `id` string, required
  - `score_out_of_20` number, required
  - `correct_count` integer, required
  - `total_questions` integer, required
  - `status` string, required
  - `completed_at` string, date-time, required
  - `answers_with_corrections` object[], nullable
  - `points_earned` number
  - `points_max` number
  - `pending_open_count` integer

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