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

LMS Comment Schema

ID du schéma
lms_comment
Collection
lms_comments
Autorisations
  • Lirelms_comment_view
  • Créerlms_comment_create
  • Modifierlms_comment_edit
  • Supprimerlms_comment_delete
Relations

Champs

LMS Comment Schema

lms_comments4 autorisations

Schema for instructor and student feedback comments in the LMS

targetTypestringobligatoire

Type of entity this comment is attached to

unit_progressquiz_attemptlearning_unit
targetIdstringobligatoire

ID of the entity this comment is attached to

min. 1 caractères
learningUnitIdstringobligatoire

ID of the learning unit (denormalized)

min. 1 caractères
courseIdstringobligatoire

ID of the course (denormalized)

min. 1 caractères
enrollmentIdstringfacultatif

ID of the student enrollment (if applicable)

nullable
authorIdstringobligatoire

ID of the comment author

min. 1 caractères
authorRolestringobligatoire

Role of the comment author

instructorstudent
bodystringobligatoire

Comment body (plain text or TipTap HTML)

1–4000 caractères
isPrivatebooleanfacultatif

Whether this comment is only visible to instructors

nullable
parentIdstringfacultatif

ID of the parent comment for threaded replies

nullable

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

Recherche