API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · dms_folders

DMS Folder Schema

ID del esquema
dms_folder
Colección
dms_folders
Permisos
  • Leerdms_folder_view
  • Creardms_folder_create
  • Modificardms_folder_edit
  • Eliminardms_folder_delete

Campos

DMS Folder Schema

dms_folders4 permisos

Schema for validating DMS folder entities (Ordnerstruktur)

namestringobligatorio

Folder display name

1–200 caracteres
parentIduuidopcional

Parent folder ID (null = root level)

admite null
pathstringopcional

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

máx. 2000 caracteressolo lectura
descriptionstringopcional
máx. 1000 caracteresadmite null
iconstringopcional

Icon name for display

máx. 50 caracteresadmite null
colorstringopcional

Color hex for display

máx. 20 caracteresadmite null
defaultDocumentTypeIduuidopcional

Default document type for uploads into this folder

admite null
retentionPolicyIduuidopcional

Retention policy inherited by documents in this folder

admite null
sortOrdernumberopcional

Sort order among siblings

Valor por defecto: 0
createdFromTemplateIduuidopcional

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

admite null
linkedEntityTypestringopcional

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

máx. 100 caracteresadmite null
linkedEntityIduuidopcional

Entity ID this folder belongs to.

admite null
backendIduuidopcional

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

admite null
backendItemIdstringopcional

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

máx. 500 caracteresadmite null
resolvedPathstringopcional

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

máx. 2000 caracteresadmite null
sharePointChangeTagstringopcional

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

admite null
sharePointLastModifiedAtdatetimeopcional

SharePoint lastModifiedDateTime captured at last sync.

admite null
sharePointWebUrlstringopcional

SharePoint webUrl for direct linkback from DMS UI.

admite null
syncSourcestringopcional

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

localsharepoint
admite null
lastSyncedAtdatetimeopcional

Last successful sync timestamp (in or out).

admite null
syncErrorstringopcional

Last sync error message — cleared on successful sync.

admite null
syncStatestringopcional

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

cleanpending_outboundpending_inboundconflictrenamingmigrating
Valor por defecto: "clean"
filingStatusstringopcional

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

unfiledfiledfiling_failedmissing_in_backend
admite null
originalBackendPathstringopcional

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

máx. 2000 caracteresadmite null
originalBackendIduuidopcional

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

admite null
pathSourcestringopcional

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
admite null
lastOutboundMoveAtdatetimeopcional

Timestamp of the most recent successful outbound folder operation.

admite null
lastOutboundMoveJobIdstringopcional

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

máx. 200 caracteresadmite null
outboundMoveAttemptsintegeropcional

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

≥ 0Valor por defecto: 0
pathRewriteStatusstringopcional

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

pendingin_progressdone
admite null
pathRewriteCursorstringopcional

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

máx. 100 caracteresadmite null
pathRewriteFromstringopcional

Source path prefix for the in-progress async rewrite.

máx. 2000 caracteresadmite null
pathRewriteTostringopcional

Target path prefix for the in-progress async rewrite.

máx. 2000 caracteresadmite null
deletedInBackendbooleanopcional

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

Valor por defecto: false
deletedInBackendAtdatetimeopcional

When the SP-side delete was first observed.

admite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/dms_folders — Lista, paginada y filtrable
  • GET /api/v1/dms_folders/<id> — Una entidad
  • POST /api/v1/dms_folders — Crear
  • PATCH /api/v1/dms_folders/<id> — Actualización parcial
  • DELETE /api/v1/dms_folders/<id> — Eliminación lógica
  • GET /api/v1/dms_folders/<id>/timeline — Auditoría y actividades

Búsqueda