API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · dms_folders

DMS Folder Schema

Schema-ID
dms_folder
Collection
dms_folders
Permissions
  • Lezendms_folder_view
  • Aanmakendms_folder_create
  • Wijzigendms_folder_edit
  • Verwijderendms_folder_delete

Velden

DMS Folder Schema

dms_folders4 permissions

Schema for validating DMS folder entities (Ordnerstruktur)

namestringvereist

Folder display name

1–200 tekens
parentIduuidoptioneel

Parent folder ID (null = root level)

nullable
pathstringoptioneel

Full materialized path (e.g. /Rechnungen/2026/)

max. 2000 tekensread-only
descriptionstringoptioneel
max. 1000 tekensnullable
iconstringoptioneel

Icon name for display

max. 50 tekensnullable
colorstringoptioneel

Color hex for display

max. 20 tekensnullable
defaultDocumentTypeIduuidoptioneel

Default document type for uploads into this folder

nullable
retentionPolicyIduuidoptioneel

Retention policy inherited by documents in this folder

nullable
sortOrdernumberoptioneel

Sort order among siblings

Default: 0
createdFromTemplateIduuidoptioneel

Folder template that produced this folder (for traceability and re-apply).

nullable
linkedEntityTypestringoptioneel

Entity type this folder belongs to (party, project, vehicle, …).

max. 100 tekensnullable
linkedEntityIduuidoptioneel

Entity ID this folder belongs to.

nullable
backendIduuidoptioneel

Storage backend that physically holds this folder (if any).

nullable
backendItemIdstringoptioneel

Backend-specific folder identifier (e.g. Graph driveItem id).

max. 500 tekensnullable
resolvedPathstringoptioneel

Backend-absolute path at creation time (audit + quick display).

max. 2000 tekensnullable
sharePointChangeTagstringoptioneel

Backend eTag at last sync — used for echo-suppression and 3-way conflict detection.

nullable
sharePointLastModifiedAtdatetimeoptioneel

SharePoint lastModifiedDateTime captured at last sync.

nullable
sharePointWebUrlstringoptioneel

SharePoint webUrl for direct linkback from DMS UI.

nullable
syncSourcestringoptioneel

Origin of the most recent write. Drives echo-suppression in the opposite direction.

localsharepoint
nullable
lastSyncedAtdatetimeoptioneel

Last successful sync timestamp (in or out).

nullable
syncErrorstringoptioneel

Last sync error message — cleared on successful sync.

nullable
syncStatestringoptioneel

Conflict-locking state-machine for folder sync (mirrors dms_document.syncState).

cleanpending_outboundpending_inboundconflictrenamingmigrating
Default: "clean"
filingStatusstringoptioneel

Folder filing state. missing_in_backend = SharePoint counterpart no longer exists (K2 scenario).

unfiledfiledfiling_failedmissing_in_backend
nullable
originalBackendPathstringoptioneel

Path at which the folder was first discovered on the backend — source of truth for path-source: origin.

max. 2000 tekensnullable
originalBackendIduuidoptioneel

Backend that originally delivered this folder (inbound origin). Stable across later moves.

nullable
pathSourcestringoptioneel

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.

originuserpolicy
nullable
lastOutboundMoveAtdatetimeoptioneel

Timestamp of the most recent successful outbound folder operation.

nullable
lastOutboundMoveJobIdstringoptioneel

BullMQ jobId of the last outbound-folder attempt (diagnostics + idempotency).

max. 200 tekensnullable
outboundMoveAttemptsintegeroptioneel

Total outbound attempts (increments on every CAS-lock acquisition).

≥ 0Default: 0
pathRewriteStatusstringoptioneel

Bulk path-rewrite progress after a folder move. null/done = idle.

pendingin_progressdone
nullable
pathRewriteCursorstringoptioneel

Cursor for chunked path-rewrite continuation (last processed _id).

max. 100 tekensnullable
pathRewriteFromstringoptioneel

Source path prefix for the in-progress async rewrite.

max. 2000 tekensnullable
pathRewriteTostringoptioneel

Target path prefix for the in-progress async rewrite.

max. 2000 tekensnullable
deletedInBackendbooleanoptioneel

SharePoint counterpart was deleted while DMS-side changes are still pending — needs conflict triage.

Default: false
deletedInBackendAtdatetimeoptioneel

When the SP-side delete was first observed.

nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/dms_folders — Lijst, gepagineerd + filterbaar
  • GET /api/v1/dms_folders/<id> — Enkele entity
  • POST /api/v1/dms_folders — Aanmaken
  • PATCH /api/v1/dms_folders/<id> — Gedeeltelijke update
  • DELETE /api/v1/dms_folders/<id> — Soft-delete
  • GET /api/v1/dms_folders/<id>/timeline — Audit + activiteiten

Zoeken