Operations Docs
Calendar Page API v1
/operations/calendar-page-api-v1Calendar Page API v1
Calendar Page API v1 makes the Flutter calendar screen independent of Firestore Cloud Functions for the day-to-day page contract.
Endpoints
-
GET /api/families/:familyId/calendar/overview- Query:
from,to,upcomingLimit,limit,today=YYYY-MM-DD - Response:
{ events, taskSummary, generatedAt } eventsis the sameCalendarEventJSON shape used by/calendar/events.taskSummarycountseventType == "task"intototal,open,completed,overdue,dueToday, andupcomingOpen.
- Query:
-
PATCH /api/families/:familyId/calendar/events/:eventId- Body:
{ title, startAt, endAt, allDay, eventType } - Replaces editable fields only. Source-chat provenance, creator, and module linkage stay immutable in v1.
- Body:
-
DELETE /api/families/:familyId/calendar/events/:eventId- Soft-deletes the event by setting
deleted_at; listings exclude it.
- Soft-deletes the event by setting
-
PATCH /api/families/:familyId/calendar/events/:eventId/completion- Body:
{ completed: boolean } - Sets or clears
completedAt/completedBy. Non-task events are tolerated for parity with the legacysetCalendarEventCompletedCloud Function.
- Body:
Flutter bridge
EngineCalendarRepository.eventsStream reads calendar/overview and
parses its events array. setEventCompleted calls the completion
endpoint and refreshes active calendar polling streams immediately.
SDK assets