API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · quiz_attempts

Quiz Attempt Schema

Schema ID
quiz_attempt
Collection
quiz_attempts
Permissions
  • Readquiz_attempt_view
  • Createquiz_attempt_create
  • Editquiz_attempt_edit
  • Deletequiz_attempt_delete
Relationships

Fields

Quiz Attempt Schema

quiz_attempts4 permissions

Schema for a student quiz or exam attempt

learningUnitIdstringrequired

ID of the quiz/exam learning unit

min 1 characters
courseIdstringrequired

ID of the parent course (denormalized)

min 1 characters
lessonIdstringrequired

ID of the parent lesson/section (denormalized)

min 1 characters
enrollmentIdstringrequired

ID of the student enrollment

min 1 charactersread-only
userIdstringrequired

ID of the student

min 1 charactersread-only
courseTenantIdstringoptional

Platform courses only (ADR 1074, Weg b): tenant holding the course content. The record itself lives in the learner tenant.

read-onlynullable
attemptNumbernumberrequired

Sequential attempt number for this student and unit

≥ 1read-only
statusstringrequired

Current state of the attempt

in_progresssubmittedgradedpending_ai_reviewtimed_out
startedAtdatetimerequired

When the attempt was started

submittedAtdatetimeoptional

When the attempt was submitted

read-onlynullable
timeLimitSecsnumberoptional

Time limit snapshot from unit at start of attempt

≥ 0nullable
scorenumberoptional

Raw score as percentage (0-100) after grading

0 – 100read-onlynullable
adjustedScorenumberoptional

Score after applying attempt penalty and/or late submission penalty

≥ 0read-onlynullable
isPassedbooleanoptional

Whether the attempt meets the passing score threshold

read-onlynullable
gradingMethodstringoptional

Snapshot from unit: how to calculate final grade from multiple attempts

highestaveragefirstlast
nullable
reviewOptionsobjectoptional

Snapshot of review options from unit at start of attempt

nullable
attemptPenaltyPercentnumberoptional

Snapshot from unit: percentage deducted per subsequent attempt

0 – 100nullable
lateSubmissionbooleanoptional

Whether this attempt was submitted after availableUntil

read-onlynullable
lateSubmissionPenaltynumberoptional

Late submission penalty applied (percentage)

0 – 100read-onlynullable
showCorrectAfterbooleanoptional

Snapshot from unit: whether to show correct answers after submission

nullable
allowBackNavigationbooleanoptional

Snapshot from unit: whether the student can navigate back during the attempt

nullable
answersobject[]optional

Student answers for each question

read-onlynullable
questionIdstringrequired
min 1 characters
questionSnapshotobjectrequired

Full question text and options at time of attempt

answeroneOfrequired
isCorrectbooleanoptional
nullable
pointsAwardednumberoptional
≥ 0nullable
gradedManuallybooleanoptional
nullable
instructorNotestringoptional
nullable
pendingAiGradingbooleanoptional
nullable
aiFeedbackstringoptional
nullable
aiPointsAwardednumberoptional
≥ 0nullable
aiConfidencenumberoptional
0 – 1nullable
aiGradedAtdatetimeoptional
nullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/quiz_attempts — List, paginated + filterable
  • GET /api/v1/quiz_attempts/<id> — Single entity
  • POST /api/v1/quiz_attempts — Create
  • PATCH /api/v1/quiz_attempts/<id> — Partial update
  • DELETE /api/v1/quiz_attempts/<id> — Soft delete
  • GET /api/v1/quiz_attempts/<id>/timeline — Audit + activities

Search