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

Course Schema

Schema ID
course
Collection
courses
Permissions
  • Readcourse_view
  • Createcourse_create
  • Editcourse_edit
  • Deletecourse_delete

Fields

Course Schema

courses4 permissions

Schema for validating course entities in the Academy/LMS module

titlestringrequired

Course title

1–200 characters
descriptionstringoptional

Course description

max 2000 charactersnullable
categorystringrequired

Course category

1–100 characters
trainingCodestringoptional

Optional internal training code/identifier (free text, intern/extern)

max 50 charactersnullable
averageRatingnumberoptional

Denormalised mean of completion-feedback ratings (1–5), null if none yet (WP-B).

0 – 5nullable
ratingCountnumberoptional

Number of completion-feedback ratings received (WP-B).

≥ 0nullable
npsScorenumberoptional

Derived NPS (-100..100) from completion-feedback recommendation scores (WP-B).

-100 – 100nullable
lastRatingAtdatetimeoptional

Timestamp of the most recent completion feedback (WP-B).

nullable
courseMaterialsobject[]optional

Course-level materials visible to all enrolled participants (WP-C).

nullable
idstringrequired
fileIdstringrequired
titlestringrequired
1–300 characters
descriptionstringoptional
max 500 charactersnullable
sortOrdernumberoptional
nullable
mimeTypestringoptional
max 200 charactersnullable
sizeBytesnumberoptional
nullable
uploadedAtdatetimeoptional
nullable
courseInternalDocumentsobject[]optional

Internal course documents visible only to instructors/admins (WP-C).

nullable
idstringrequired
fileIdstringrequired
titlestringrequired
1–300 characters
descriptionstringoptional
max 500 charactersnullable
sortOrdernumberoptional
nullable
mimeTypestringoptional
max 200 charactersnullable
sizeBytesnumberoptional
nullable
uploadedAtdatetimeoptional
nullable
lessonsstring[]optional

Array of lesson IDs

nullable
isPublishedbooleanrequired

Whether the course is published and visible to students

durationnumberrequired

Course duration in minutes

≥ 1
levelstringrequired

Course difficulty level

beginnerintermediateadvanced
authorIdstringoptional

ID of the course author/instructor

nullable
maxEnrollmentsnumberoptional

Maximum number of students that can enroll

≥ 1nullable
requiresEnrollmentApprovalbooleanoptional

When true, self-enrollment requires the team lead to approve before the enrollment becomes active (WP-D).

nullable
prerequisitesstring[]optional

Array of prerequisite course IDs

nullable
skillRequirementsobject[]optional

Recommended skills (with minimum level) before enrolling. Advisory only — enrollment is not blocked, the learner is warned (WP-A).

nullable
skillIdstringrequired
minimumLevelstringrequired
BEGINNERINTERMEDIATEADVANCEDEXPERT
skillIduuidoptional

Linked skill definition UUID — the employee skill that is auto-upgraded on course completion (WP-A, ADR 0272). Acts as the fallback for self-enrollments that carry no training_assignment.skillId.

nullable
certificateTemplateIdstringoptional

ID of the certificate template for completion

nullable
certificateDesignobjectoptional

Visual design of the completion certificate. Missing = default design.

nullable
templatestringoptional
modernclassicminimal
accentColorstringoptional
Patternnullable
titlestringoptional
max 60 charactersnullable
statementstringoptional
max 160 charactersnullable
descriptionstringoptional
max 280 charactersnullable
signerNamestringoptional
max 80 charactersnullable
signerRolestringoptional
max 80 charactersnullable
signatureFileIdstringoptional
Patternnullable
logoFileIdstringoptional
Patternnullable
showGradebooleanoptional
showHoursbooleanoptional
showQrbooleanoptional
validityMonthsintegeroptional
1 – 240nullable
pricenumberoptional

Course price (0 for free courses)

≥ 0nullable
tagsstring[]optional

Course tags for categorization and search

nullable
isSystemCoursebooleanoptional

System-managed course that bypasses module licensing

nullable
targetAudiencestringoptional

Target audience for this course (e.g. technicians, sales, new employees)

max 500 charactersnullable
gradingEnabledbooleanoptional

Whether grading/gradebook is enabled for this course

nullable
passingScorenumberoptional

Minimum score percentage required to pass the course

0 – 100nullable
certificateModestringoptional

How certificates are issued: auto on completion, manual by instructor, or none

automanualnone
nullable
completionModestringoptional

How course completion is determined

all_unitspercentagemanual
nullable
navigationModestringoptional

How learners move through the course: sequential (each unit unlocks the next, default when unset) or free (any unit can be opened, skipped units stay open for completion)

sequentialfreenull
nullable
completionPercentnumberoptional

Percentage of units required for completion (if completionMode=percentage)

0 – 100nullable
courseTypestringoptional

Course type for special handling (e.g. uvv_training links to fleet module)

generaluvv_trainingonboardingcompliance
nullable
coverImageFileIdstringoptional

File ID of the course cover image

nullable
contentVersionintegeroptional

Monotonic content version. Bumped via `POST /courses/:id/publish-version` when the author releases a substantive content change so in-flight enrollees can see "course was updated since you started" prompts.

≥ 1Default: 1
contentVersionPublishedAtdatetimeoptional

When the current contentVersion was published.

Default: nullnullable

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/courses — List, paginated + filterable
  • GET /api/v1/courses/<id> — Single entity
  • POST /api/v1/courses — Create
  • PATCH /api/v1/courses/<id> — Partial update
  • DELETE /api/v1/courses/<id> — Soft delete
  • GET /api/v1/courses/<id>/timeline — Audit + activities

Search