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

Certificate Schema

ID du schéma
certificate
Collection
certificates
Autorisations
  • Lirecertificate_view
  • Créercertificate_create
  • Modifiercertificate_edit
  • Supprimercertificate_delete
Relations

Champs

Certificate Schema

certificates4 autorisations

Schema for validating completion certificates in the Academy/LMS module

documentLanguagestringfacultatif

Language the certificate PDF is rendered in. Decided when the certificate is issued and never re-derived. Missing = de.

deenesfrnlnull
nullable
courseIdstringobligatoire

ID of the completed course

min. 1 caractères
userIdstringobligatoire

ID of the student who earned the certificate

min. 1 caractèreslecture seule
enrollmentIdstringobligatoire

ID of the enrollment record

min. 1 caractèreslecture seule
certificateNumberstringobligatoire

Unique certificate number

min. 1 caractèreslecture seule
issuedAtdatetimeobligatoire

Date and time when the certificate was issued

validUntildatetimefacultatif

Certificate expiration date (if applicable)

nullable
templateIdstringfacultatif

ID of the certificate template used

nullable
consumerTenantIdstringfacultatif

Tenant the learner belongs to. Null for MSP-internal certificates; set for cross-tenant.

lecture seulenullable
courseTenantIdstringfacultatif

Platform courses only (ADR 1074, Weg b): tenant holding the course content. The certificate itself lives in the learner tenant.

lecture seulenullable
consumerUserIdstringfacultatif

users._id of the learner in the consumer tenant (ADR 0693). Null for MSP-internal certificates.

lecture seulenullable
designobjectfacultatif

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

lecture seulenullable
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
issuerNamestringfacultatif

Issuer as printed on the certificate, shown on the public verification page.

lecture seulenullable
verificationTokenstringfacultatif

Capability token in the QR code of the certificate. Never returned by generic reads.

lecture seulenullable
metadataobjectobligatoire
courseNamestringobligatoire

Name of the completed course

min. 1 caractères
studentNamestringobligatoire

Name of the student who completed the course

min. 1 caractères
instructorNamestringfacultatif

Name of the course instructor

nullable
completionDatedatetimeobligatoire

Date when the course was completed

gradestringfacultatif

Grade or performance rating

nullable
hoursnumberobligatoire

Total course hours for certification

≥ 0

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

Recherche