API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · quiz_attempts

Quiz Attempt Schema

Schema-ID
quiz_attempt
Collection
quiz_attempts
Permissions
  • Lezenquiz_attempt_view
  • Aanmakenquiz_attempt_create
  • Wijzigenquiz_attempt_edit
  • Verwijderenquiz_attempt_delete
Relaties

Velden

Quiz Attempt Schema

quiz_attempts4 permissions

Schema for a student quiz or exam attempt

learningUnitIdstringvereist

ID of the quiz/exam learning unit

min. 1 tekens
courseIdstringvereist

ID of the parent course (denormalized)

min. 1 tekens
lessonIdstringvereist

ID of the parent lesson/section (denormalized)

min. 1 tekens
enrollmentIdstringvereist

ID of the student enrollment

min. 1 tekensread-only
userIdstringvereist

ID of the student

min. 1 tekensread-only
courseTenantIdstringoptioneel

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

read-onlynullable
attemptNumbernumbervereist

Sequential attempt number for this student and unit

≥ 1read-only
statusstringvereist

Current state of the attempt

in_progresssubmittedgradedpending_ai_reviewtimed_out
startedAtdatetimevereist

When the attempt was started

submittedAtdatetimeoptioneel

When the attempt was submitted

read-onlynullable
timeLimitSecsnumberoptioneel

Time limit snapshot from unit at start of attempt

≥ 0nullable
scorenumberoptioneel

Raw score as percentage (0-100) after grading

0 – 100read-onlynullable
adjustedScorenumberoptioneel

Score after applying attempt penalty and/or late submission penalty

≥ 0read-onlynullable
isPassedbooleanoptioneel

Whether the attempt meets the passing score threshold

read-onlynullable
gradingMethodstringoptioneel

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

highestaveragefirstlast
nullable
reviewOptionsobjectoptioneel

Snapshot of review options from unit at start of attempt

nullable
attemptPenaltyPercentnumberoptioneel

Snapshot from unit: percentage deducted per subsequent attempt

0 – 100nullable
lateSubmissionbooleanoptioneel

Whether this attempt was submitted after availableUntil

read-onlynullable
lateSubmissionPenaltynumberoptioneel

Late submission penalty applied (percentage)

0 – 100read-onlynullable
showCorrectAfterbooleanoptioneel

Snapshot from unit: whether to show correct answers after submission

nullable
allowBackNavigationbooleanoptioneel

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

nullable
answersobject[]optioneel

Student answers for each question

read-onlynullable
questionIdstringvereist
min. 1 tekens
questionSnapshotobjectvereist

Full question text and options at time of attempt

answeroneOfvereist
isCorrectbooleanoptioneel
nullable
pointsAwardednumberoptioneel
≥ 0nullable
gradedManuallybooleanoptioneel
nullable
instructorNotestringoptioneel
nullable
pendingAiGradingbooleanoptioneel
nullable
aiFeedbackstringoptioneel
nullable
aiPointsAwardednumberoptioneel
≥ 0nullable
aiConfidencenumberoptioneel
0 – 1nullable
aiGradedAtdatetimeoptioneel
nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/quiz_attempts — Lijst, gepagineerd + filterbaar
  • GET /api/v1/quiz_attempts/<id> — Enkele entity
  • POST /api/v1/quiz_attempts — Aanmaken
  • PATCH /api/v1/quiz_attempts/<id> — Gedeeltelijke update
  • DELETE /api/v1/quiz_attempts/<id> — Soft-delete
  • GET /api/v1/quiz_attempts/<id>/timeline — Audit + activiteiten

Zoeken