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

DMS Folder Schema

ID du schéma
dms_folder
Collection
dms_folders
Autorisations
  • Liredms_folder_view
  • Créerdms_folder_create
  • Modifierdms_folder_edit
  • Supprimerdms_folder_delete

Champs

DMS Folder Schema

dms_folders4 autorisations

Schema for validating DMS folder entities (Ordnerstruktur)

namestringobligatoire

Folder display name

1–200 caractères
parentIduuidfacultatif

Parent folder ID (null = root level)

nullable
pathstringfacultatif

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

max. 2000 caractèreslecture seule
descriptionstringfacultatif
max. 1000 caractèresnullable
iconstringfacultatif

Icon name for display

max. 50 caractèresnullable
colorstringfacultatif

Color hex for display

max. 20 caractèresnullable
defaultDocumentTypeIduuidfacultatif

Default document type for uploads into this folder

nullable
retentionPolicyIduuidfacultatif

Retention policy inherited by documents in this folder

nullable
sortOrdernumberfacultatif

Sort order among siblings

Par défaut : 0
createdFromTemplateIduuidfacultatif

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

nullable
linkedEntityTypestringfacultatif

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

max. 100 caractèresnullable
linkedEntityIduuidfacultatif

Entity ID this folder belongs to.

nullable
backendIduuidfacultatif

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

nullable
backendItemIdstringfacultatif

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

max. 500 caractèresnullable
resolvedPathstringfacultatif

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

max. 2000 caractèresnullable
sharePointChangeTagstringfacultatif

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

nullable
sharePointLastModifiedAtdatetimefacultatif

SharePoint lastModifiedDateTime captured at last sync.

nullable
sharePointWebUrlstringfacultatif

SharePoint webUrl for direct linkback from DMS UI.

nullable
syncSourcestringfacultatif

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

localsharepoint
nullable
lastSyncedAtdatetimefacultatif

Last successful sync timestamp (in or out).

nullable
syncErrorstringfacultatif

Last sync error message — cleared on successful sync.

nullable
syncStatestringfacultatif

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

cleanpending_outboundpending_inboundconflictrenamingmigrating
Par défaut : "clean"
filingStatusstringfacultatif

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

unfiledfiledfiling_failedmissing_in_backend
nullable
originalBackendPathstringfacultatif

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

max. 2000 caractèresnullable
originalBackendIduuidfacultatif

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

nullable
pathSourcestringfacultatif

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
lastOutboundMoveAtdatetimefacultatif

Timestamp of the most recent successful outbound folder operation.

nullable
lastOutboundMoveJobIdstringfacultatif

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

max. 200 caractèresnullable
outboundMoveAttemptsintegerfacultatif

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

≥ 0Par défaut : 0
pathRewriteStatusstringfacultatif

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

pendingin_progressdone
nullable
pathRewriteCursorstringfacultatif

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

max. 100 caractèresnullable
pathRewriteFromstringfacultatif

Source path prefix for the in-progress async rewrite.

max. 2000 caractèresnullable
pathRewriteTostringfacultatif

Target path prefix for the in-progress async rewrite.

max. 2000 caractèresnullable
deletedInBackendbooleanfacultatif

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

Par défaut : false
deletedInBackendAtdatetimefacultatif

When the SP-side delete was first observed.

nullable

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

Recherche