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

Learning Unit Schema

Schema-ID
learning_unit
Collection
learning_units
Permissions
  • Lezenlearning_unit_view
  • Aanmakenlearning_unit_create
  • Wijzigenlearning_unit_edit
  • Verwijderenlearning_unit_delete
Relaties

Velden

Learning Unit Schema

learning_units4 permissions

Schema for individual learning units within a course section

lessonIdstringvereist

ID of the parent lesson/section (Lektion)

min. 1 tekens
courseIdstringvereist

ID of the parent course (denormalized)

min. 1 tekens
titlestringvereist

Learning unit title

1–200 tekens
typestringvereist

Type of learning unit content

videotextquizexamfile_uploadltih5pslideslive
ordernumbervereist

Position within the parent section

≥ 0
isPreviewbooleanoptioneel

Whether unit can be accessed without enrollment

nullable
isPublishedbooleanoptioneel

Whether the unit is visible to students

nullable
contentstringoptioneel

TipTap JSON content for text units

nullable
videoUrlstringoptioneel

URL of the video

nullable
videoProviderstringoptioneel

Video hosting provider

uploadyoutubevimeoexternalbunny
nullable
videoDurationSecsnumberoptioneel

Total video duration in seconds

≥ 0nullable
bunnyVideoIdstringoptioneel

BunnyCDN Stream video GUID (source of truth for provider "bunny"; playback URL is signed per-request)

nullable
bunnyStatusstringoptioneel

BunnyCDN Stream processing status for UI feedback

uploadingprocessingreadyerror
nullable
questionPoolIdstringoptioneel

ID of the question pool to draw from

nullable
questionCountnumberoptioneel

Number of questions to draw randomly from pool

≥ 1nullable
timeLimitSecsnumberoptioneel

Time limit in seconds (0 = no limit)

≥ 0nullable
passingScorenumberoptioneel

Minimum score percentage to pass (0-100)

0 – 100nullable
maxAttemptsnumberoptioneel

Maximum number of attempts (null = unlimited)

≥ 1nullable
shuffleQuestionsbooleanoptioneel

Whether to shuffle question order

nullable
shuffleOptionsbooleanoptioneel

Whether to shuffle answer options

nullable
showCorrectAfterbooleanoptioneel

Whether to show correct answers after submission

nullable
isGradedbooleanoptioneel

Whether this unit counts toward gradebook/certificate (default: true for exam, false for quiz)

nullable
allowBackNavigationbooleanoptioneel

Whether students can navigate back to previous questions (default: true for quiz, false for exam)

nullable
isRequiredForCompletionbooleanoptioneel

Whether this unit must be completed for course completion (default: true for exam, false for quiz)

nullable
embeddedQuestionsobject[]optioneel

Inline quiz questions (alternative to question pool)

nullable
_idstringvereist
min. 1 tekensread-only
questionstringvereist
min. 1 tekens
typestringvereist
multiple_choicemultiple_responsetrue_falsefill_blankdropdown_blankmatchingorderingshort_text
optionsobject[]optioneel
nullable
idstringvereist
min. 1 tekens
labelstringvereist
min. 1 tekens
isCorrectbooleanoptioneel
nullable
correctAnsweroneOfvereist
pointsnumbervereist
≥ 0
explanationstringoptioneel
nullable
mediaUrlstringoptioneel
nullable
matchingPairsobject[]optioneel
nullable
leftstringvereist
rightstringvereist
orderItemsstring[]optioneel
nullable
dropdownBlanksobject[]optioneel
nullable
blankstringvereist
optionsstring[]vereist
correctstringvereist
difficultystringoptioneel
easymediumhard
nullable
gradingRubricstringoptioneel
nullable
aiPromptstringoptioneel
nullable
tagsstring[]optioneel
nullable
gradingMethodstringoptioneel

How to calculate final grade from multiple attempts (default: highest)

highestaveragefirstlast
nullable
availableFromdatetimeoptioneel

Quiz opens at this time (ISO 8601)

nullable
availableUntildatetimeoptioneel

Quiz closes at this time (ISO 8601)

nullable
lateSubmissionPolicystringoptioneel

What happens if submitted after availableUntil (default: none)

noneallow_with_penalty
nullable
lateSubmissionPenaltynumberoptioneel

Percentage deducted for late submission (e.g., 20 = -20%)

0 – 100nullable
reviewOptionsobjectoptioneel

Granular review options per time window. Overrides showCorrectAfter when set.

nullable
immediatelyAfterobjectoptioneel
nullable
showScorebooleanoptioneel
nullable
showCorrectAnswersbooleanoptioneel
nullable
showFeedbackbooleanoptioneel
nullable
showPointsbooleanoptioneel
nullable
afterCloseobjectoptioneel
nullable
showScorebooleanoptioneel
nullable
showCorrectAnswersbooleanoptioneel
nullable
showFeedbackbooleanoptioneel
nullable
showPointsbooleanoptioneel
nullable
attemptCooldownMinsnumberoptioneel

Minimum minutes to wait between attempts

≥ 0nullable
attemptPenaltyPercentnumberoptioneel

Percentage deducted per subsequent attempt (e.g., 10 = attempt 2 loses 10%, attempt 3 loses 20%)

0 – 100nullable
uploadInstructionsstringoptioneel

Instructions for file upload assignment

nullable
allowedFileTypesstring[]optioneel

Allowed MIME types for uploads

nullable
maxFileSizeMbnumberoptioneel

Maximum file size in MB

≥ 0nullable
ltiToolIdstringoptioneel

ID of the registered LTI tool (lti_tools collection)

nullable
ltiCustomParamsobjectoptioneel

Custom parameters for this unit (merged with tool-level defaults)

nullable
ltiOpenInNewTabbooleanoptioneel

Open the tool in a new tab instead of an inline iframe

nullable
ltiPassingScorenumberoptioneel

Minimum AGS score (0–100) required to auto-complete this unit

0 – 100nullable
h5pFileIdstringoptioneel

ID of the uploaded .h5p file in files collection

nullable
h5pContentPathstringoptioneel

URL path to the extracted H5P content (set by worker after extraction)

nullable
h5pPassingScorenumberoptioneel

Minimum xAPI score (0–100) required to auto-complete this unit

0 – 100nullable
requirementsobjectoptioneel

Completion requirements for this unit

nullable
minScorenumberoptioneel
0 – 100nullable
videoMinPercentnumberoptioneel
0 – 100nullable
textMinTimeSecsnumberoptioneel
≥ 0nullable
textScrollPercentnumberoptioneel
0 – 100nullable
slidesViewedPercentnumberoptioneel
0 – 100nullable
fileUploadRequiredbooleanoptioneel
nullable
manualApprovalRequiredbooleanoptioneel
nullable
resourcesobject[]optioneel

Additional resources attached to this unit

nullable
namestringvereist
min. 1 tekens
typestringvereist
pdflinkdownload
urlurivereist
sizenumberoptioneel
≥ 0nullable
slidesobject[]optioneel

Ordered slides shown one at a time (type: slides)

nullable
idstringvereist
min. 1 tekens
kindstringoptioneel
htmlwidgetcheckpointpdf
nullable
titlestringoptioneel
nullable
htmlstringoptioneel
nullable
widgetIdstringoptioneel
nullable
fileUrlstringoptioneel
max. 200 tekensPatternnullable
fileNamestringoptioneel
max. 255 tekensnullable
pageintegeroptioneel
1 – 2000nullable
eyebrowstringoptioneel
nullable
questionobjectoptioneel
nullable
_idstringvereist
min. 1 tekensread-only
questionstringvereist
min. 1 tekens
typestringvereist
multiple_choicemultiple_responsetrue_falsefill_blankdropdown_blankmatchingorderingshort_text
optionsobject[]optioneel
nullable
idstringvereist
min. 1 tekens
labelstringvereist
min. 1 tekens
isCorrectbooleanoptioneel
nullable
correctAnsweroneOfvereist
pointsnumbervereist
≥ 0
explanationstringoptioneel
nullable
mediaUrlstringoptioneel
nullable
matchingPairsobject[]optioneel
nullable
leftstringvereist
rightstringvereist
orderItemsstring[]optioneel
nullable
dropdownBlanksobject[]optioneel
nullable
blankstringvereist
optionsstring[]vereist
correctstringvereist
difficultystringoptioneel
easymediumhard
nullable
gradingRubricstringoptioneel
nullable
aiPromptstringoptioneel
nullable
tagsstring[]optioneel
nullable
notesstringoptioneel
nullable
liveobjectoptioneel

Live unit settings (type: live): format, mandatory, completion rule, self-selection, approval and the embedded runs (Durchführungen). Runs are written only by the /academy/live routes.

nullable
formatstringoptioneel
onsiteonlinehybridnull
nullable
mandatorybooleanoptioneel
nullable
completionRuleobjectoptioneel
nullable
modestringvereist
allmin
minCountintegeroptioneel
≥ 1nullable
selfSelectbooleanoptioneel
nullable
requiresApprovalbooleanoptioneel
nullable
runsobject[]optioneel
max. 200 itemsnullable
idstringvereist
1–64 tekens
titlestringoptioneel
max. 200 tekensnullable
instructorUserIdsstring[]optioneel
nullable
minParticipantsintegeroptioneel
≥ 0nullable
maxParticipantsintegeroptioneel
≥ 1nullable
registrationDeadlinedatetimeoptioneel
nullable
plannedAppointmentCountintegeroptioneel
1 – 500nullable
statusstringoptioneel
plannedconfirmedcancelledcompletednull
nullable
aiReviewEnabledbooleanoptioneel

Whether AI review is enabled for file upload submissions

nullable
aiReviewPromptstringoptioneel

Custom AI prompt for reviewing file submissions

max. 5000 tekensnullable
aiReviewRubricstringoptioneel

Grading rubric for AI review of file submissions

max. 10000 tekensnullable

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

Zoeken