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

Certificate Schema

ID del esquema
certificate
Colección
certificates
Permisos
  • Leercertificate_view
  • Crearcertificate_create
  • Modificarcertificate_edit
  • Eliminarcertificate_delete
Relaciones

Campos

Certificate Schema

certificates4 permisos

Schema for validating completion certificates in the Academy/LMS module

documentLanguagestringopcional

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

deenesfrnlnull
admite null
courseIdstringobligatorio

ID of the completed course

mín. 1 caracteres
userIdstringobligatorio

ID of the student who earned the certificate

mín. 1 caracteressolo lectura
enrollmentIdstringobligatorio

ID of the enrollment record

mín. 1 caracteressolo lectura
certificateNumberstringobligatorio

Unique certificate number

mín. 1 caracteressolo lectura
issuedAtdatetimeobligatorio

Date and time when the certificate was issued

validUntildatetimeopcional

Certificate expiration date (if applicable)

admite null
templateIdstringopcional

ID of the certificate template used

admite null
consumerTenantIdstringopcional

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

solo lecturaadmite null
courseTenantIdstringopcional

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

solo lecturaadmite null
consumerUserIdstringopcional

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

solo lecturaadmite null
designobjectopcional

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

solo lecturaadmite null
templatestringopcional
modernclassicminimal
accentColorstringopcional
Patrónadmite null
titlestringopcional
máx. 60 caracteresadmite null
statementstringopcional
máx. 160 caracteresadmite null
descriptionstringopcional
máx. 280 caracteresadmite null
signerNamestringopcional
máx. 80 caracteresadmite null
signerRolestringopcional
máx. 80 caracteresadmite null
signatureFileIdstringopcional
Patrónadmite null
logoFileIdstringopcional
Patrónadmite null
showGradebooleanopcional
showHoursbooleanopcional
showQrbooleanopcional
validityMonthsintegeropcional
1 – 240admite null
issuerNamestringopcional

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

solo lecturaadmite null
verificationTokenstringopcional

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

solo lecturaadmite null
metadataobjectobligatorio
courseNamestringobligatorio

Name of the completed course

mín. 1 caracteres
studentNamestringobligatorio

Name of the student who completed the course

mín. 1 caracteres
instructorNamestringopcional

Name of the course instructor

admite null
completionDatedatetimeobligatorio

Date when the course was completed

gradestringopcional

Grade or performance rating

admite null
hoursnumberobligatorio

Total course hours for certification

≥ 0

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

Búsqueda