API · v1 · stabil
CODEMETA OS Developer Center
Konsole öffnen
Module

Wissensdatenbank

Die Wissensdatenbank verwaltet interne und kundenfokussierte Artikel mit Versionierung, Kommentaren, Feedback und Runbook-Executions. Artikel können auf Wunsch an Customer-Tenants geteilt werden (kb_shares).

Resources

ResourcePfadPermission-PräfixSequenz
Artikel/api/v1/kb_articleskb_articleKB-
Kommentare/api/v1/kb_commentskb_comment
Feedback/api/v1/kb_feedbackkb_feedback
Runbook-Executions/api/v1/kb_executionskb_execution
Cross-Tenant-Shares/api/v1/kb_shareskb_share

Standard-CRUD nach den Konventionen. Lese-Statistiken, Kategorien und Tags liegen als typisierte Felder direkt am kb_article-Datensatz.

Schemas

Article

kb_articles4 Permissions

Knowledge base article

articleNumber string optional

Human-readable article number (server-generated, e.g. K-2026-00042)

read-onlynullable
title string erforderlich

Article title

1–500 Zeichen
slug string optional

URL-friendly slug (auto-generated from title if missing)

max 500 Zeichennullable
content string optional

Article body (plain text or Markdown depending on bodyFormat)

Default: ""nullable
contentHtml string optional

Rich-text HTML body (sanitized server-side)

nullable
bodyFormat string optional

Content format used for rendering

MARKDOWNHTMLBLOCKS
nullable
category string optional

Category label (free-text)

Default: "Allgemein"nullable
categoryId string optional

Optional structured category UUID

nullable
status string optional

Workflow status

DRAFTREVIEWPUBLISHEDARCHIVED
Default: "DRAFT"
isPublished boolean optional

Publication flag (mirrors status === PUBLISHED)

Default: falsenullable
viewCount integer optional

Number of times the article has been viewed

≥ 0Default: 0nullable
authorId uuid optional

Primary author user UUID (protected — assigned server-side)

read-onlynullable
successorAuthorId uuid optional

Designated successor when the current author is offboarded

Default: nullnullable
isPortalVisible boolean optional

Visible in the customer portal

Default: falsenullable
visibleToPartyIds uuid[] optional

When non-empty, restricts portal visibility to these parties

Default: []nullable
tags string[] optional

Free-text tags

Default: []nullable
attachments object[] optional
Default: []nullable
s3Key string erforderlich
fileName string erforderlich
mimeType string erforderlich
sizeBytes number erforderlich
≥ 0
uploadedAt datetime erforderlich
uploadedBy uuid erforderlich
isInternal boolean optional
nullable
linkedEntities object[] optional
Default: []nullable
entityType string erforderlich
partyassetticketcontractprojectuseropportunitykb_article
entityId uuid erforderlich
role string erforderlich
embeddingStatus string optional
PENDINGPROCESSINGDONEFAILED
nullable
lastEmbeddedAt datetime optional
nullable
spaceId uuid optional

Owning kb_space UUID. Articles without a space appear in the default space.

Default: nullnullable
parentId uuid optional

Parent article UUID for hierarchy

Default: nullnullable
sortOrder integer optional

Sort order among siblings under parentId

≥ 0Default: 0nullable
path string[] optional

Materialized ancestor path (denormalized)

nullable
rootArticleId uuid optional

Denormalized root article UUID for share-based visibility

nullable
isTemplate boolean optional

If true, this article acts as a template/blueprint

Default: falsenullable
templateName string optional
max 200 Zeichennullable
templateDescription string optional
max 2000 Zeichennullable
nextReviewDate datetime optional

Scheduled date for the next content review

Default: nullnullable
lastReviewedAt datetime optional

Timestamp of the last completed review

Default: nullnullable

visibility: 'public' macht den Artikel über die Public-API erreichbar (sofern Branding-Domain konfiguriert).

Sonder-Permissions

Neben dem Standard-Set gibt es:

  • kb_article_publish — Status-Übergang von draft/review nach published.
  • kb_article_archive — Archivieren.

Wer nur kb_article_update hat, kann keinen Artikel publizieren — der Status-Wechsel scheitert mit 403.

Runbooks & Executions

Ein KB-Artikel kann als ausführbares Runbook markiert werden. Jeder Lauf hinterlässt eine kb_execution mit Eingaben, Ausgaben und Verantwortlichem — praktisch für wiederkehrende Standard-Prozeduren mit Audit-Bedarf.

Cross-Tenant-Sharing

MSPs können KB-Artikel über kb_shares an Customer-Tenants teilen. Der Customer-Tenant sieht den Artikel, kann ihn aber nicht editieren. Das ist die Basis für self-service-Wissens-Portale.

Verwandt

Suche