LMS Import and Export API
Summary
Source-backed Draft reference for LMS Import and Export API across the implemented Training Service and, where applicable, Gateway surface.
Audience
API consumers, engineering, QA, support, architecture, security, product, and implementation reviewers.
Reference Content
Route set
Two CSV template downloads, two JSON-wrapped CSV imports, and four CSV exports are mapped. The imports are not multipart uploads; the request body contains CSV text. Exports and templates are buffered into memory before a file response.
Course import upserts by tenant-visible course code. Enrollment import upserts by tenant-visible course plus employee reference and requires a Published course. Expected domain, format, and argument errors are collected per row, so recognized row failures coexist with valid row changes. A later unhandled persistence failure can fail the save; no explicit transaction or rollback policy is declared.
Exports cover courses, enrollments, certificates, and assessment results. They are tenant-filtered through EF but have no filters, paging, streaming, size limit, background generation, or redaction option. Because several exports contain personal, assessment, certificate, or document-related data, access and distribution require confirmation; this public page does not reproduce columns or examples.
Source References
microservices/src/training-service/Api/TrainingEndpoints.csmicroservices/src/training-service/Infrastructure/TrainingDbContext.cs
Related Articles
See Also
Keywords
- LMS API
- Training Service
- Source-backed contract
Revision Information
- Status: Draft
- Last reviewed: 2026-07-17
- Review cycle: Quarterly