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

Enrollment Schema

ID du schéma
enrollment
Collection
enrollments
Autorisations
  • Lireenrollment_view
  • Créerenrollment_create
  • Modifierenrollment_edit
  • Supprimerenrollment_delete
Relations

Champs

Enrollment Schema

enrollments4 autorisations

Schema for validating student enrollment entities in the Academy/LMS module

courseIdstringobligatoire

ID of the course the student is enrolled in

min. 1 caractères
userIdstringobligatoire

ID of the enrolled student

min. 1 caractèreslecture seule
statusstringobligatoire

Current enrollment status. pending_payment is set for Stripe-direct charges before the PaymentIntent succeeds (ADR 0066b Phase 3). pending_approval/rejected gate self-enrollment behind team-lead approval (WP-D).

activecompleteddroppedsuspendedpending_paymentpending_approvalrejected
enrolledAtdatetimeobligatoire

Date and time when the student enrolled

completedAtdatetimefacultatif

Date and time when the course was completed

nullable
feedbackRatingnumberfacultatif

Completion feedback: 1–5 star satisfaction rating (WP-B).

1 – 5nullable
feedbackCommentstringfacultatif

Completion feedback: free-text comment (WP-B).

max. 2000 caractèresnullable
feedbackNpsnumberfacultatif

Completion feedback: optional 0–10 recommendation score (NPS, WP-B).

0 – 10nullable
feedbackAtdatetimefacultatif

When completion feedback was submitted (WP-B).

nullable
submittedByUserIdstringfacultatif

User who self-enrolled and triggered the approval request (WP-D).

nullable
reviewedByUserIdstringfacultatif

Team lead / approver who approved or rejected the enrollment (WP-D).

nullable
rejectionReasonstringfacultatif

Reason given when an enrollment was rejected (WP-D).

max. 1000 caractèresnullable
progressnumberobligatoire

Course completion progress as percentage

0 – 100
lastAccessedAtdatetimefacultatif

Last time the student accessed the course

nullable
certificateIssuedbooleanfacultatif

Whether a certificate has been issued for completion

nullable
certificateIssuedAtdatetimefacultatif

Date and time when the certificate was issued

nullable
certificateRevokedAtdatetimefacultatif

When the certificate of this enrollment was revoked. Blocks a new issue.

lecture seulenullable
gradebookEntryIdstringfacultatif

ID of the associated gradebook entry

nullable
currentLessonIdstringfacultatif

ID of the last lesson/section the student visited

nullable
currentUnitIdstringfacultatif

ID of the last learning unit the student visited

nullable
consumerTenantIdstringfacultatif

Tenant the learner belongs to, when different from the course owner. Null for MSP-internal enrollments.

lecture seulenullable
courseTenantIdstringfacultatif

Platform courses only: tenant holding the course content. The enrollment itself lives in the learner tenant.

lecture seulenullable
shareIdstringfacultatif

course_shares row that authorised this cross-tenant enrollment.

nullable
pricingSnapshotobjectfacultatif

Frozen pricing at enrollment time (set on cross-tenant enrollments).

nullable
modestringfacultatif
freefixed_per_seat
amountCentsintegerfacultatif
≥ 0
currencystringfacultatif
taxRatePercentnumberfacultatif
0 – 100
enrolledCourseVersionintegerfacultatif

Course.contentVersion at the moment of enrollment. The frontend compares with the current course version and warns the learner if the course was updated mid-flight.

≥ 1nullable

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

Recherche