POST /v1/calendar/free-busy
POST/v1/calendar/free-busy
Returns free/busy blocks for up to 20 users within a time window
of at most 14 days. Each block carries start, end and status
(busy or out_of_office); in addition, workingHours
(recurring by weekday) and all-day absences (vacation, sick leave) are
returned.
Blocks originating from a calendar event or a scheduled task
contain title, eventId and location — but only
if the calling person is allowed to read the underlying document:
events and tasks marked PRIVATE appear for everyone except the
creator and participants as a bare busy block without details.
Description texts are never delivered. Blocks from shift-plan
deviations or mandatory breaks never carry details.
Example
curl -X POST https://api.codemeta-os.de/v1/calendar/free-busy \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.calendar.post();Best practice
When editing an existing event, pass its ID as
excludeEventId, otherwise the event blocks its own time window and
every reschedule appears busy.
Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |