DMS Folder Schema
Felder
DMS Folder Schema
Schema for validating DMS folder entities (Ordnerstruktur)
name
Folder display name
parentId
Parent folder ID (null = root level)
path
Full materialized path (e.g. /Rechnungen/2026/)
description
icon
Icon name for display
color
Color hex for display
defaultDocumentTypeId
Default document type for uploads into this folder
retentionPolicyId
Retention policy inherited by documents in this folder
sortOrder
Sort order among siblings
createdFromTemplateId
Folder template that produced this folder (for traceability and re-apply).
linkedEntityType
Entity type this folder belongs to (party, project, vehicle, …).
linkedEntityId
Entity ID this folder belongs to.
backendId
Storage backend that physically holds this folder (if any).
backendItemId
Backend-specific folder identifier (e.g. Graph driveItem id).
resolvedPath
Backend-absolute path at creation time (audit + quick display).
syncSource
Origin of the most recent write. Drives echo-suppression in the opposite direction.
localsharepointlastSyncedAt
Last successful sync timestamp (in or out).
syncError
Last sync error message — cleared on successful sync.
syncState
Conflict-locking state-machine for folder sync (mirrors dms_document.syncState).
cleanpending_outboundpending_inboundconflictrenamingmigratingfilingStatus
Folder filing state. missing_in_backend = SharePoint counterpart no longer exists (K2 scenario).
unfiledfiledfiling_failedmissing_in_backendoriginalBackendPath
Path at which the folder was first discovered on the backend — source of truth for path-source: origin.
originalBackendId
Backend that originally delivered this folder (inbound origin). Stable across later moves.
pathSource
Path-ownership model (ADR 0391): "origin" = backend original (inbound sync), "user" = explicit folder choice, "policy" = filing policy template. Only a policy with overrideBackendPath=true may override "origin"/"user". Folders currently never carry "user" — the value exists so the enum stays symmetric with dms_documents.
originuserpolicylastOutboundMoveAt
Timestamp of the most recent successful outbound folder operation.
lastOutboundMoveJobId
BullMQ jobId of the last outbound-folder attempt (diagnostics + idempotency).
outboundMoveAttempts
Total outbound attempts (increments on every CAS-lock acquisition).
pathRewriteStatus
Bulk path-rewrite progress after a folder move. null/done = idle.
pendingin_progressdonepathRewriteCursor
Cursor for chunked path-rewrite continuation (last processed _id).
pathRewriteFrom
Source path prefix for the in-progress async rewrite.
pathRewriteTo
Target path prefix for the in-progress async rewrite.
deletedInBackend
SharePoint counterpart was deleted while DMS-side changes are still pending — needs conflict triage.
deletedInBackendAt
When the SP-side delete was first observed.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/dms_folders— Liste, paginiert + filterbarGET /api/v1/dms_folders/<id>— Einzelne EntityPOST /api/v1/dms_folders— AnlegenPATCH /api/v1/dms_folders/<id>— Teil-UpdateDELETE /api/v1/dms_folders/<id>— Soft-DeleteGET /api/v1/dms_folders/<id>/timeline— Audit + Aktivitäten