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

Daily Closing Schema

Schema ID
daily_closing
Collection
daily_closings
Permissions
  • Readdaily_overview_view
  • Createdaily_closing_create
  • Editdaily_closing_create
  • Deletedaily_closing_admin

Fields

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.

userIduuidrequired

User who owns this daily closing

datedaterequired

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

orgUnitIduuidoptional

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

nullable
policyIduuidrequired

Effective policy that governed this closing

read-only
closedAtdatetimerequired

Timestamp when the day was closed

read-only
guardResultsobject[]optional

Snapshot of guard evaluations at closing time

Default: []read-only
idstringrequired
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
statusstringrequired
passwarnfail
severitystringrequired
blockwarninfo
messagestringrequired
detailsobject[]optional
typestringoptional
idstringoptional
titlestringoptional
overridesobject[]optional

Guards that the user closed with a reason override

Default: []
guardIdstringrequired
reasonstringrequired
1–2000 characters
overriddenByuuidrequired
notesstringoptional

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

max 8000 charactersnullable
recapIduuidoptional

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

read-onlynullable
supersededAtdatetimeoptional

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
resetAtdatetimeoptional

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
supersededBystringoptional
time_record_changephone_call_changeremote_session_changecalendar_event_changemanual
read-onlynullable
supersededRefIdstringoptional

ID of the entity whose change triggered the supersede

read-onlynullable

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

Search