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

Required Document Rule Schema

Schema-ID
required_document_rule
Collection
required_document_rules
Permissions
  • Lezenrequired_document_rule_view
  • Aanmakenrequired_document_rule_create
  • Wijzigenrequired_document_rule_edit
  • Verwijderenrequired_document_rule_delete

Velden

Required Document Rule Schema

required_document_rules4 permissions

Tenant-/OU-/Position-scoped declaration of a document that an employee must provide (ADR 0112)

documentTypeIduuidvereist

FK to dms_document_type — the kind of document required.

documentTypeNamestringvereist

Snapshot of dms_document_type.name at rule creation time. Cached for display so a deleted document type does not blank-out the UI.

1–200 tekens
scopeobjectvereist
kindstringvereist
TENANTORG_UNITPOSITION
orgUnitIduuidoptioneel

Required when kind='ORG_UNIT'.

nullable
positionIduuidoptioneel

Required when kind='POSITION'.

nullable
mandatorybooleanoptioneel

When true, missing this document is a compliance violation. False = nice-to-have, surfaced in the UI but does not flag red.

Default: true
blockingForOnboardingbooleanoptioneel

When true, the employee's onboarding state is held open until the document is on file. The onboarding-checklist generator surfaces these as auto-items.

Default: false
renewalIntervalMonthsintegeroptioneel

Document expires after this many months and must be renewed. Null = once, no renewal (e.g. employment contract). Used to compute expiry status against employee_documents.validUntil.

1 – 240nullable
validFromdateoptioneel

Optional: rule only takes effect from this date (e.g. "DSGVO-Schulung is mandatory from 2026-07-01").

nullable
validTodateoptioneel

Optional: rule expires on this date.

nullable
descriptionstringoptioneel

Free-text note for HR admins, shown in the rule editor.

max. 1000 tekensnullable

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

Zoeken