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

KB Share Schema

ID du schéma
kb_share
Collection
kb_shares
Autorisations
  • Lirekb_share_view
  • Créerkb_share_create
  • Modifierkb_share_edit
  • Supprimerkb_share_delete

Champs

KB Share Schema

kb_shares4 autorisations

Knowledge base article share configuration (user, team, role, or tenant)

articleIduuidobligatoire

Reference to a kb_article (root or sub-article)

recipientTypestringobligatoire

Type of recipient this article is shared with

USERTEAMROLETENANT
recipientIduuidobligatoire

ID of the recipient (userId, orgUnitId, roleId, or tenantId)

permissionsobjectfacultatif

Granular permissions granted by this share

canViewbooleanfacultatif

Can view the article (and its children if appliesToSubtree)

Par défaut : true
canCreatebooleanfacultatif

Can create child articles

Par défaut : false
canUpdatebooleanfacultatif

Can update the article (and its children if appliesToSubtree)

Par défaut : false
canDeletebooleanfacultatif

Can delete the article (and its children if appliesToSubtree)

Par défaut : false
canSharebooleanfacultatif

Can re-share this article to additional recipients (capped by own permissions)

Par défaut : false
canCommentbooleanfacultatif

Can add comments to the article

Par défaut : false
canExportbooleanfacultatif

Can export the article (e.g. PDF, Markdown)

Par défaut : false
canDownloadbooleanfacultatif

Can download attachments of the article

Par défaut : false
canPrintbooleanfacultatif

Can print the article

Par défaut : false
appliesToSubtreebooleanfacultatif

If true (default), the share recursively applies to all descendant articles. If false, it only applies to this exact article.

Par défaut : true
validUntildatetimefacultatif

Optional ISO date-time after which the share is no longer effective. Null = unlimited.

Par défaut : nullnullable
createdByuuidfacultatif

User ID who created this share (set automatically by the API)

lecture seule
updatedBystringfacultatif

User ID who last updated this share (set automatically by the API)

Motiflecture seulenullable
isActivebooleanfacultatif

Soft toggle to temporarily disable sharing without deleting

Par défaut : true

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

Recherche