API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · quiz_attempts

Quiz Attempt Schema

ID del esquema
quiz_attempt
Colección
quiz_attempts
Permisos
  • Leerquiz_attempt_view
  • Crearquiz_attempt_create
  • Modificarquiz_attempt_edit
  • Eliminarquiz_attempt_delete
Relaciones

Campos

Quiz Attempt Schema

quiz_attempts4 permisos

Schema for a student quiz or exam attempt

learningUnitIdstringobligatorio

ID of the quiz/exam learning unit

mín. 1 caracteres
courseIdstringobligatorio

ID of the parent course (denormalized)

mín. 1 caracteres
lessonIdstringobligatorio

ID of the parent lesson/section (denormalized)

mín. 1 caracteres
enrollmentIdstringobligatorio

ID of the student enrollment

mín. 1 caracteressolo lectura
userIdstringobligatorio

ID of the student

mín. 1 caracteressolo lectura
courseTenantIdstringopcional

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

solo lecturaadmite null
attemptNumbernumberobligatorio

Sequential attempt number for this student and unit

≥ 1solo lectura
statusstringobligatorio

Current state of the attempt

in_progresssubmittedgradedpending_ai_reviewtimed_out
startedAtdatetimeobligatorio

When the attempt was started

submittedAtdatetimeopcional

When the attempt was submitted

solo lecturaadmite null
timeLimitSecsnumberopcional

Time limit snapshot from unit at start of attempt

≥ 0admite null
scorenumberopcional

Raw score as percentage (0-100) after grading

0 – 100solo lecturaadmite null
adjustedScorenumberopcional

Score after applying attempt penalty and/or late submission penalty

≥ 0solo lecturaadmite null
isPassedbooleanopcional

Whether the attempt meets the passing score threshold

solo lecturaadmite null
gradingMethodstringopcional

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

highestaveragefirstlast
admite null
reviewOptionsobjectopcional

Snapshot of review options from unit at start of attempt

admite null
attemptPenaltyPercentnumberopcional

Snapshot from unit: percentage deducted per subsequent attempt

0 – 100admite null
lateSubmissionbooleanopcional

Whether this attempt was submitted after availableUntil

solo lecturaadmite null
lateSubmissionPenaltynumberopcional

Late submission penalty applied (percentage)

0 – 100solo lecturaadmite null
showCorrectAfterbooleanopcional

Snapshot from unit: whether to show correct answers after submission

admite null
allowBackNavigationbooleanopcional

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

admite null
answersobject[]opcional

Student answers for each question

solo lecturaadmite null
questionIdstringobligatorio
mín. 1 caracteres
questionSnapshotobjectobligatorio

Full question text and options at time of attempt

answeroneOfobligatorio
isCorrectbooleanopcional
admite null
pointsAwardednumberopcional
≥ 0admite null
gradedManuallybooleanopcional
admite null
instructorNotestringopcional
admite null
pendingAiGradingbooleanopcional
admite null
aiFeedbackstringopcional
admite null
aiPointsAwardednumberopcional
≥ 0admite null
aiConfidencenumberopcional
0 – 1admite null
aiGradedAtdatetimeopcional
admite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/quiz_attempts — Lista, paginada y filtrable
  • GET /api/v1/quiz_attempts/<id> — Una entidad
  • POST /api/v1/quiz_attempts — Crear
  • PATCH /api/v1/quiz_attempts/<id> — Actualización parcial
  • DELETE /api/v1/quiz_attempts/<id> — Eliminación lógica
  • GET /api/v1/quiz_attempts/<id>/timeline — Auditoría y actividades

Búsqueda