API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · courses

Course Schema

ID du schéma
course
Collection
courses
Autorisations
  • Lirecourse_view
  • Créercourse_create
  • Modifiercourse_edit
  • Supprimercourse_delete

Champs

Course Schema

courses4 autorisations

Schema for validating course entities in the Academy/LMS module

titlestringobligatoire

Course title

1–200 caractères
descriptionstringfacultatif

Course description

max. 2000 caractèresnullable
categorystringobligatoire

Course category

1–100 caractères
trainingCodestringfacultatif

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

max. 50 caractèresnullable
averageRatingnumberfacultatif

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

0 – 5nullable
ratingCountnumberfacultatif

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

≥ 0nullable
npsScorenumberfacultatif

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

-100 – 100nullable
lastRatingAtdatetimefacultatif

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

nullable
courseMaterialsobject[]facultatif

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

nullable
idstringobligatoire
fileIdstringobligatoire
titlestringobligatoire
1–300 caractères
descriptionstringfacultatif
max. 500 caractèresnullable
sortOrdernumberfacultatif
nullable
mimeTypestringfacultatif
max. 200 caractèresnullable
sizeBytesnumberfacultatif
nullable
uploadedAtdatetimefacultatif
nullable
courseInternalDocumentsobject[]facultatif

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

nullable
idstringobligatoire
fileIdstringobligatoire
titlestringobligatoire
1–300 caractères
descriptionstringfacultatif
max. 500 caractèresnullable
sortOrdernumberfacultatif
nullable
mimeTypestringfacultatif
max. 200 caractèresnullable
sizeBytesnumberfacultatif
nullable
uploadedAtdatetimefacultatif
nullable
lessonsstring[]facultatif

Array of lesson IDs

nullable
isPublishedbooleanobligatoire

Whether the course is published and visible to students

durationnumberobligatoire

Course duration in minutes

≥ 1
levelstringobligatoire

Course difficulty level

beginnerintermediateadvanced
authorIdstringfacultatif

ID of the course author/instructor

nullable
maxEnrollmentsnumberfacultatif

Maximum number of students that can enroll

≥ 1nullable
requiresEnrollmentApprovalbooleanfacultatif

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

nullable
prerequisitesstring[]facultatif

Array of prerequisite course IDs

nullable
skillRequirementsobject[]facultatif

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

nullable
skillIdstringobligatoire
minimumLevelstringobligatoire
BEGINNERINTERMEDIATEADVANCEDEXPERT
skillIduuidfacultatif

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
certificateTemplateIdstringfacultatif

ID of the certificate template for completion

nullable
certificateDesignobjectfacultatif

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

nullable
templatestringfacultatif
modernclassicminimal
accentColorstringfacultatif
Motifnullable
titlestringfacultatif
max. 60 caractèresnullable
statementstringfacultatif
max. 160 caractèresnullable
descriptionstringfacultatif
max. 280 caractèresnullable
signerNamestringfacultatif
max. 80 caractèresnullable
signerRolestringfacultatif
max. 80 caractèresnullable
signatureFileIdstringfacultatif
Motifnullable
logoFileIdstringfacultatif
Motifnullable
showGradebooleanfacultatif
showHoursbooleanfacultatif
showQrbooleanfacultatif
validityMonthsintegerfacultatif
1 – 240nullable
pricenumberfacultatif

Course price (0 for free courses)

≥ 0nullable
tagsstring[]facultatif

Course tags for categorization and search

nullable
isSystemCoursebooleanfacultatif

System-managed course that bypasses module licensing

nullable
targetAudiencestringfacultatif

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

max. 500 caractèresnullable
gradingEnabledbooleanfacultatif

Whether grading/gradebook is enabled for this course

nullable
passingScorenumberfacultatif

Minimum score percentage required to pass the course

0 – 100nullable
certificateModestringfacultatif

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

automanualnone
nullable
completionModestringfacultatif

How course completion is determined

all_unitspercentagemanual
nullable
navigationModestringfacultatif

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
completionPercentnumberfacultatif

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

0 – 100nullable
courseTypestringfacultatif

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

generaluvv_trainingonboardingcompliance
nullable
coverImageFileIdstringfacultatif

File ID of the course cover image

nullable
contentVersionintegerfacultatif

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.

≥ 1Par défaut : 1
contentVersionPublishedAtdatetimefacultatif

When the current contentVersion was published.

Par défaut : nullnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/courses — Liste, paginée et filtrable
  • GET /api/v1/courses/<id> — Une entité
  • POST /api/v1/courses — Créer
  • PATCH /api/v1/courses/<id> — Mise à jour partielle
  • DELETE /api/v1/courses/<id> — Suppression logique
  • GET /api/v1/courses/<id>/timeline — Audit et activités

Recherche