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

Daily Closing Policy

Schema-ID
daily_closing_policy
Collection
daily_closing_policies
Permissions
  • Lezendaily_closing_admin
  • Aanmakendaily_closing_admin
  • Wijzigendaily_closing_admin
  • Verwijderendaily_closing_admin

Velden

Daily Closing Policy

daily_closing_policies4 permissions

Configurable closing policy at tenant, org-unit, role, or user scope.Defines reminder trigger, guards, notes requirement, and overdue escalation behaviour.

scopeobjectvereist
typestringvereist
tenantorg_unitroleuser
targetIdstringoptioneel

orgUnitId or roleId; null for tenant-default and user scope

nullable
userIdsstring[]optioneel

Tenant-scoped users._id the policy applies to; only for scope type "user".

max. 500 itemsunieke items
enabledbooleanvereist
Default: false
effectiveFromstringoptioneel

YYYY-MM-DD — missed closings are only counted from this day on. Overrides the policy creation date. Null = fall back to creation date.

Patternnullable
reminderobjectvereist
triggersstring[]vereist

Ordered priority list — first match wins

min. 1 items
fixedTimestringoptioneel

HH:MM tenant-local time, required when triggers contains fixed_time

Patternnullable
minHoursForClockOutTriggerintegeroptioneel

Minutes — minimum logged work-shift time before clock_out_min_hours fires

0 – 1440Default: 360
inactivityMinutesintegeroptioneel
1 – 1440nullable
channelsstring[]vereist
min. 1 items
guardsobject[]vereist
Default: []
idstringvereist
min. 1 tekens
kindstringvereist
all_calendar_events_bookedall_phone_calls_bookedall_remote_sessions_bookedattendance_vs_booked_matchno_open_tickets_assigned_todayno_overdue_tasks_due_todayno_unread_high_priority_inboxattendance_shift_clocked_out
severitystringvereist
blockwarninfo
configobjectoptioneel
toleranceMinutesintegeroptioneel
≥ 0
i18nKeystringvereist
min. 1 tekens
hardBlockbooleanoptioneel

DEPRECATED (ADR 0478) — accepted for backwards compatibility, no longer read. Every failing block/warn guard is overridable with a written reason.

Default: true
notesobjectoptioneel
requiredbooleanoptioneel
Default: false
promptstringoptioneel
max. 500 tekensnullable
overdueEscalationobjectoptioneel
teamLeadThresholdintegeroptioneel
≥ 1Default: 3
teamLeadCooldownDaysintegeroptioneel
≥ 1Default: 7
missingClosingSignalsobjectoptioneel

Signals at the top-bar date while daily closings are missing (badge, red date, pulse, popup), each from its own number of open days. Missing = all off.

todayCountsFromstringoptioneel

When the current day counts as open: never (past days only), clock_out (worked and no shift open any more), fixed_time (from todayFixedTime, when worked today).

neverclock_outfixed_time
todayFixedTimestringoptioneel

HH:MM tenant-local time, required when todayCountsFrom is fixed_time

Patternnullable
badgeobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The signal shows from this many open days on (today included when it counts).

1 – 14
redDateobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The signal shows from this many open days on (today included when it counts).

1 – 14
pulseobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The signal shows from this many open days on (today included when it counts).

1 – 14
popupobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The signal shows from this many open days on (today included when it counts).

1 – 14
repeatMinutesintegeroptioneel

Show the popup again this many minutes after "later"; null = once per day and device.

5 – 480nullable
missingClosingLocksobjectoptioneel

Escalating locks while daily closings are missing (ADR 1179): insistent popup, no new time capture, read-only, full lock — each from its own number of open past days. Missing = all off; the emergency unlock stays available unless explicitly disabled.

insistentPopupobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The level applies from this many open PAST days on; today never counts.

1 – 14
snoozeMinutesintegeroptioneel

"Later" (with a reason) postpones the popup this many minutes; null = the popup repeat interval of missingClosingSignals, else 30.

5 – 480nullable
noNewTimeobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The level applies from this many open PAST days on; today never counts.

1 – 14
readOnlyobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The level applies from this many open PAST days on; today never counts.

1 – 14
fullLockobjectoptioneel
enabledbooleanvereist
minOpenDaysintegervereist

The level applies from this many open PAST days on; today never counts.

1 – 14
emergencyUnlockobjectoptioneel
enabledbooleanvereist
minutesintegeroptioneel

Duration of one self-service emergency unlock (default 60).

15 – 480
maxPer7Daysintegeroptioneel

Emergency unlocks allowed per rolling 7 days (default 3).

1 – 20

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

Zoeken