API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · enrollments

Enrollment Schema

ID del esquema
enrollment
Colección
enrollments
Permisos
  • Leerenrollment_view
  • Crearenrollment_create
  • Modificarenrollment_edit
  • Eliminarenrollment_delete
Relaciones

Campos

Enrollment Schema

enrollments4 permisos

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

courseIdstringobligatorio

ID of the course the student is enrolled in

mín. 1 caracteres
userIdstringobligatorio

ID of the enrolled student

mín. 1 caracteressolo lectura
statusstringobligatorio

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
enrolledAtdatetimeobligatorio

Date and time when the student enrolled

completedAtdatetimeopcional

Date and time when the course was completed

admite null
feedbackRatingnumberopcional

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

1 – 5admite null
feedbackCommentstringopcional

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

máx. 2000 caracteresadmite null
feedbackNpsnumberopcional

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

0 – 10admite null
feedbackAtdatetimeopcional

When completion feedback was submitted (WP-B).

admite null
submittedByUserIdstringopcional

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

admite null
reviewedByUserIdstringopcional

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

admite null
rejectionReasonstringopcional

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

máx. 1000 caracteresadmite null
progressnumberobligatorio

Course completion progress as percentage

0 – 100
lastAccessedAtdatetimeopcional

Last time the student accessed the course

admite null
certificateIssuedbooleanopcional

Whether a certificate has been issued for completion

admite null
certificateIssuedAtdatetimeopcional

Date and time when the certificate was issued

admite null
certificateRevokedAtdatetimeopcional

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

solo lecturaadmite null
gradebookEntryIdstringopcional

ID of the associated gradebook entry

admite null
currentLessonIdstringopcional

ID of the last lesson/section the student visited

admite null
currentUnitIdstringopcional

ID of the last learning unit the student visited

admite null
consumerTenantIdstringopcional

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

solo lecturaadmite null
courseTenantIdstringopcional

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

solo lecturaadmite null
shareIdstringopcional

course_shares row that authorised this cross-tenant enrollment.

admite null
pricingSnapshotobjectopcional

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

admite null
modestringopcional
freefixed_per_seat
amountCentsintegeropcional
≥ 0
currencystringopcional
taxRatePercentnumberopcional
0 – 100
enrolledCourseVersionintegeropcional

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.

≥ 1admite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/enrollments — Lista, paginada y filtrable
  • GET /api/v1/enrollments/<id> — Una entidad
  • POST /api/v1/enrollments — Crear
  • PATCH /api/v1/enrollments/<id> — Actualización parcial
  • DELETE /api/v1/enrollments/<id> — Eliminación lógica
  • GET /api/v1/enrollments/<id>/timeline — Auditoría y actividades

Búsqueda