API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · quiz_attempts

Quiz Attempt Schema

ID du schéma
quiz_attempt
Collection
quiz_attempts
Autorisations
  • Lirequiz_attempt_view
  • Créerquiz_attempt_create
  • Modifierquiz_attempt_edit
  • Supprimerquiz_attempt_delete
Relations

Champs

Quiz Attempt Schema

quiz_attempts4 autorisations

Schema for a student quiz or exam attempt

learningUnitIdstringobligatoire

ID of the quiz/exam learning unit

min. 1 caractères
courseIdstringobligatoire

ID of the parent course (denormalized)

min. 1 caractères
lessonIdstringobligatoire

ID of the parent lesson/section (denormalized)

min. 1 caractères
enrollmentIdstringobligatoire

ID of the student enrollment

min. 1 caractèreslecture seule
userIdstringobligatoire

ID of the student

min. 1 caractèreslecture seule
courseTenantIdstringfacultatif

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

lecture seulenullable
attemptNumbernumberobligatoire

Sequential attempt number for this student and unit

≥ 1lecture seule
statusstringobligatoire

Current state of the attempt

in_progresssubmittedgradedpending_ai_reviewtimed_out
startedAtdatetimeobligatoire

When the attempt was started

submittedAtdatetimefacultatif

When the attempt was submitted

lecture seulenullable
timeLimitSecsnumberfacultatif

Time limit snapshot from unit at start of attempt

≥ 0nullable
scorenumberfacultatif

Raw score as percentage (0-100) after grading

0 – 100lecture seulenullable
adjustedScorenumberfacultatif

Score after applying attempt penalty and/or late submission penalty

≥ 0lecture seulenullable
isPassedbooleanfacultatif

Whether the attempt meets the passing score threshold

lecture seulenullable
gradingMethodstringfacultatif

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

highestaveragefirstlast
nullable
reviewOptionsobjectfacultatif

Snapshot of review options from unit at start of attempt

nullable
attemptPenaltyPercentnumberfacultatif

Snapshot from unit: percentage deducted per subsequent attempt

0 – 100nullable
lateSubmissionbooleanfacultatif

Whether this attempt was submitted after availableUntil

lecture seulenullable
lateSubmissionPenaltynumberfacultatif

Late submission penalty applied (percentage)

0 – 100lecture seulenullable
showCorrectAfterbooleanfacultatif

Snapshot from unit: whether to show correct answers after submission

nullable
allowBackNavigationbooleanfacultatif

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

nullable
answersobject[]facultatif

Student answers for each question

lecture seulenullable
questionIdstringobligatoire
min. 1 caractères
questionSnapshotobjectobligatoire

Full question text and options at time of attempt

answeroneOfobligatoire
isCorrectbooleanfacultatif
nullable
pointsAwardednumberfacultatif
≥ 0nullable
gradedManuallybooleanfacultatif
nullable
instructorNotestringfacultatif
nullable
pendingAiGradingbooleanfacultatif
nullable
aiFeedbackstringfacultatif
nullable
aiPointsAwardednumberfacultatif
≥ 0nullable
aiConfidencenumberfacultatif
0 – 1nullable
aiGradedAtdatetimefacultatif
nullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/quiz_attempts — Liste, paginée et filtrable
  • GET /api/v1/quiz_attempts/<id> — Une entité
  • POST /api/v1/quiz_attempts — Créer
  • PATCH /api/v1/quiz_attempts/<id> — Mise à jour partielle
  • DELETE /api/v1/quiz_attempts/<id> — Suppression logique
  • GET /api/v1/quiz_attempts/<id>/timeline — Audit et activités

Recherche