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

Lesson Schema

Schema-ID
lesson
Collection
lessons
Permissions
  • Lezenlesson_view
  • Aanmakenlesson_create
  • Wijzigenlesson_edit
  • Verwijderenlesson_delete
Relaties

Velden

Lesson Schema

lessons4 permissions

Schema for validating lesson entities in the Academy/LMS module

courseIdstringvereist

ID of the course this lesson belongs to

min. 1 tekens
titlestringvereist

Lesson title

1–200 tekens
contentstringvereist

Lesson content in markdown format

min. 1 tekens
ordernumbervereist

Order of lesson in the course

≥ 1
durationnumbervereist

Lesson duration in minutes

≥ 1
videoUrlurioptioneel

URL of lesson video

nullable
typestringoptioneel

Type of lesson content

videotextquizinteractive
nullable
isPreviewbooleanoptioneel

Whether lesson can be accessed without enrollment

nullable
resourcesobject[]optioneel

Additional resources for the lesson

nullable
namestringvereist
min. 1 tekens
typestringvereist
pdflinkdownload
urlurivereist
sizenumberoptioneel
≥ 0nullable
unitCountnumberoptioneel

Cached count of learning units in this section

≥ 0nullable
completionModestringoptioneel

Whether units must be completed in order (sequential) or freely

sequentialfree
nullable
isLockedbooleanoptioneel

Whether this section is locked until the previous section is completed

nullable
requiredModulestringoptioneel

Module ID required to view this lesson (for onboarding filtering)

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

Zoeken