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

KB Comment Schema

ID du schéma
kb_comment
Collection
kb_comments
Autorisations
  • Lirekb_comment_view
  • Créerkb_comment_create
  • Modifierkb_comment_edit
  • Supprimerkb_comment_delete

Champs

KB Comment Schema

kb_comments4 autorisations

Threaded comment on a knowledge base article

articleIduuidobligatoire

Reference to the kb_article

parentCommentIdstringfacultatif

Parent comment ID for threaded replies (null = root comment)

MotifPar défaut : nullnullable
bodystringobligatoire

Comment text (may contain @mentions as @[userId])

1–5000 caractères
mentionsuuid[]facultatif

User IDs mentioned in this comment

Par défaut : []
anchorIduuidfacultatif

Matches <span data-comment-anchor="…"> in kb_article.contentHtml. null = general comment without a text anchor.

Par défaut : nullnullable
quotedTextstringfacultatif

Snapshot of the commented text at creation time — fallback when the anchor is orphaned.

max. 300 caractèresPar défaut : nullnullable
reactionsobject[]facultatif

Emoji reactions with the internal user IDs that reacted

Par défaut : []
emojistringobligatoire
max. 16 caractères
userIdsuuid[]obligatoire
isResolvedbooleanfacultatif

Whether this comment thread is resolved

Par défaut : false
resolvedBystringfacultatif

User who resolved this thread

MotifPar défaut : nullnullable
resolvedAtdatetimefacultatif
Par défaut : nullnullable

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

Recherche