API · v1 · stabil
CODEMETA OSDeveloper Center
DE
Konsole öffnen
Entity · daily_closing_policies

Daily Closing Policy

Schema-ID
daily_closing_policy
Collection
daily_closing_policies
Permissions
  • Lesendaily_closing_admin
  • Anlegendaily_closing_admin
  • Änderndaily_closing_admin
  • Löschendaily_closing_admin

Felder

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.

scopeobjecterforderlich
typestringerforderlich
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 Itemseindeutige Items
enabledbooleanerforderlich
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
reminderobjecterforderlich
triggersstring[]erforderlich

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[]erforderlich
min 1 Items
guardsobject[]erforderlich
Default: []
idstringerforderlich
min 1 Zeichen
kindstringerforderlich
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
severitystringerforderlich
blockwarninfo
configobjectoptional
toleranceMinutesintegeroptional
≥ 0
i18nKeystringerforderlich
min 1 Zeichen
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 Zeichennullable
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
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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

1 – 14
redDateobjectoptional
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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

1 – 14
pulseobjectoptional
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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

1 – 14
popupobjectoptional
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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

1 – 14
readOnlyobjectoptional
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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

1 – 14
fullLockobjectoptional
enabledbooleanerforderlich
minOpenDaysintegererforderlich

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

1 – 14
emergencyUnlockobjectoptional
enabledbooleanerforderlich
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

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/daily_closing_policies — Liste, paginiert + filterbar
  • GET /api/v1/daily_closing_policies/<id> — Einzelne Entity
  • POST /api/v1/daily_closing_policies — Anlegen
  • PATCH /api/v1/daily_closing_policies/<id> — Teil-Update
  • DELETE /api/v1/daily_closing_policies/<id> — Soft-Delete
  • GET /api/v1/daily_closing_policies/<id>/timeline — Audit + Aktivitäten

Suche