API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · dms_shares

DMS Share Schema

Schema ID
dms_share
Collection
dms_shares
Permissions
  • Readdms_share_view
  • Createdms_share_create
  • Editdms_share_edit
  • Deletedms_share_delete

Fields

DMS Share Schema

dms_shares4 permissions

Document share configuration (internal user or external link)

documentIduuidrequired

Reference to dms_document

shareTypestringrequired

Internal (user/role) or external (public link)

INTERNALEXTERNAL_LINK
sharedWithUserIduuidoptional

User this document is shared with (internal)

nullable
sharedWithRoleIduuidoptional

Role this document is shared with (internal)

nullable
permissionstringoptional

Permission level granted by this share

VIEWCOMMENTEDIT
Default: "VIEW"
tokenstringoptional

Unique token for external access (UUIDv7)

read-onlynullable
passwordHashstringoptional

bcrypt hash of optional access password

read-onlynullable
expiresAtdatetimeoptional

When the share link expires

nullable
maxDownloadsnumberoptional

Maximum number of downloads allowed

≥ 1nullable
downloadCountnumberoptional

Current download count

Default: 0read-only
allowDownloadbooleanoptional

Whether the recipient can download the file

Default: true
messagestringoptional

Optional message to the recipient

max 1000 charactersnullable
isActivebooleanoptional
Default: true
lastAccessedAtdatetimeoptional
read-onlynullable
accessCountnumberoptional

Total number of times this share was accessed

Default: 0read-only

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/dms_shares — List, paginated + filterable
  • GET /api/v1/dms_shares/<id> — Single entity
  • POST /api/v1/dms_shares — Create
  • PATCH /api/v1/dms_shares/<id> — Partial update
  • DELETE /api/v1/dms_shares/<id> — Soft delete
  • GET /api/v1/dms_shares/<id>/timeline — Audit + activities

Search