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

Daily Closing Schema

Schema-ID
daily_closing
Collection
daily_closings
Permissions
  • Lezendaily_overview_view
  • Aanmakendaily_closing_create
  • Wijzigendaily_closing_create
  • Verwijderendaily_closing_admin

Velden

Daily Closing Schema

daily_closings4 permissions

Persistent confirmation that a user has reviewed and closed their workday. Captures guard results, override reasons, and is automatically superseded when post-close changes happen.

userIduuidvereist

User who owns this daily closing

datedatevereist

Date of the daily closing (ISO YYYY-MM-DD, tenant-local time)

orgUnitIduuidoptioneel

Org unit (team) this closing belongs to at closing time. Nullable for tenants without formal org structure.

nullable
policyIduuidvereist

Effective policy that governed this closing

read-only
closedAtdatetimevereist

Timestamp when the day was closed

read-only
guardResultsobject[]optioneel

Snapshot of guard evaluations at closing time

Default: []read-only
idstringvereist
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
statusstringvereist
passwarnfail
severitystringvereist
blockwarninfo
messagestringvereist
detailsobject[]optioneel
typestringoptioneel
idstringoptioneel
titlestringoptioneel
overridesobject[]optioneel

Guards that the user closed with a reason override

Default: []
guardIdstringvereist
reasonstringvereist
1–2000 tekens
overriddenByuuidvereist
notesstringoptioneel

Snapshot of the daily_note content as of closing time; subsequent edits on the daily_note do not change this field

max. 8000 tekensnullable
recapIduuidoptioneel

FK to daily_overview_recaps if a self-scope recap was generated for this date

read-onlynullable
supersededAtdatetimeoptioneel

Set when a post-close mutation (time_record/phone_call/remote_session/calendar_event) invalidates this closing; user must create a fresh closing

read-onlynullable
resetAtdatetimeoptioneel

Set when the OWNER deliberately took this closing back (ADR 0533). Distinct from supersededAt, which an automatic supersede also sets: only a deliberate reset earns the escalation grace period (the day is not counted as missed until the end of the following day). Absent on closings from before ADR 0533 — treated as "no grace", i.e. the previous behaviour.

read-onlynullable
supersededBystringoptioneel
time_record_changephone_call_changeremote_session_changecalendar_event_changemanual
read-onlynullable
supersededRefIdstringoptioneel

ID of the entity whose change triggered the supersede

read-onlynullable

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

Zoeken