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

Daily Closing Policy

Schema ID
daily_closing_policy
Collection
daily_closing_policies
Permissions
  • Readdaily_closing_admin
  • Createdaily_closing_admin
  • Editdaily_closing_admin
  • Deletedaily_closing_admin

Fields

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.

scopeobjectrequired
typestringrequired
tenantorg_unitroleuser
targetIdstringoptional

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

nullable
userIdsstring[]optional

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

max 500 itemsunique items
enabledbooleanrequired
Default: false
effectiveFromstringoptional

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

Patternnullable
reminderobjectrequired
triggersstring[]required

Ordered priority list — first match wins

min 1 items
fixedTimestringoptional

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

Patternnullable
minHoursForClockOutTriggerintegeroptional

Minutes — minimum logged work-shift time before clock_out_min_hours fires

0 – 1440Default: 360
inactivityMinutesintegeroptional
1 – 1440nullable
channelsstring[]required
min 1 items
guardsobject[]required
Default: []
idstringrequired
min 1 characters
kindstringrequired
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
severitystringrequired
blockwarninfo
configobjectoptional
toleranceMinutesintegeroptional
≥ 0
i18nKeystringrequired
min 1 characters
hardBlockbooleanoptional

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

Default: true
notesobjectoptional
requiredbooleanoptional
Default: false
promptstringoptional
max 500 charactersnullable
overdueEscalationobjectoptional
teamLeadThresholdintegeroptional
≥ 1Default: 3
teamLeadCooldownDaysintegeroptional
≥ 1Default: 7
missingClosingSignalsobjectoptional

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.

todayCountsFromstringoptional

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
todayFixedTimestringoptional

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

Patternnullable
badgeobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
redDateobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
pulseobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
popupobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
repeatMinutesintegeroptional

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

5 – 480nullable
missingClosingLocksobjectoptional

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.

insistentPopupobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
snoozeMinutesintegeroptional

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

5 – 480nullable
noNewTimeobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
readOnlyobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
fullLockobjectoptional
enabledbooleanrequired
minOpenDaysintegerrequired

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

1 – 14
emergencyUnlockobjectoptional
enabledbooleanrequired
minutesintegeroptional

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

15 – 480
maxPer7Daysintegeroptional

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

1 – 20

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/daily_closing_policies — List, paginated + filterable
  • GET /api/v1/daily_closing_policies/<id> — Single entity
  • POST /api/v1/daily_closing_policies — Create
  • PATCH /api/v1/daily_closing_policies/<id> — Partial update
  • DELETE /api/v1/daily_closing_policies/<id> — Soft delete
  • GET /api/v1/daily_closing_policies/<id>/timeline — Audit + activities

Search