API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · lessons

Lesson Schema

Schema ID
lesson
Collection
lessons
Permissions
  • Readlesson_view
  • Createlesson_create
  • Editlesson_edit
  • Deletelesson_delete
Relationships

Fields

Lesson Schema

lessons4 permissions

Schema for validating lesson entities in the Academy/LMS module

courseIdstringrequired

ID of the course this lesson belongs to

min 1 characters
titlestringrequired

Lesson title

1–200 characters
contentstringrequired

Lesson content in markdown format

min 1 characters
ordernumberrequired

Order of lesson in the course

≥ 1
durationnumberrequired

Lesson duration in minutes

≥ 1
videoUrlurioptional

URL of lesson video

nullable
typestringoptional

Type of lesson content

videotextquizinteractive
nullable
isPreviewbooleanoptional

Whether lesson can be accessed without enrollment

nullable
resourcesobject[]optional

Additional resources for the lesson

nullable
namestringrequired
min 1 characters
typestringrequired
pdflinkdownload
urlurirequired
sizenumberoptional
≥ 0nullable
unitCountnumberoptional

Cached count of learning units in this section

≥ 0nullable
completionModestringoptional

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

sequentialfree
nullable
isLockedbooleanoptional

Whether this section is locked until the previous section is completed

nullable
requiredModulestringoptional

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

nullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/lessons — List, paginated + filterable
  • GET /api/v1/lessons/<id> — Single entity
  • POST /api/v1/lessons — Create
  • PATCH /api/v1/lessons/<id> — Partial update
  • DELETE /api/v1/lessons/<id> — Soft delete
  • GET /api/v1/lessons/<id>/timeline — Audit + activities

Search