GET/Organizations/{orgId}/departments/{departmentId}/schedule
Lists activities from reachable active events where this department participates, in the Activities_GetActivityWindow
shape with each item's event filled; pass both from/to bounds (instants, to exclusive, at most 400 days apart)
for a calendar window or omit both for an all-dates table including undated activities, capped at 2,000 rows.
The orgId comes from Users_GetOrganizations and departmentId from Organizations_GetDepartments; needs basic organization access.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
| departmentId | uuid | Required | |
Query Parameters
| Field | Type | Required | Description |
|---|
| from | date-time | Optional | |
| to | date-time | Optional | |
Response
| Field | Type | Description |
|---|
| activities | ActivityWindowItem[]| null | |
| truncated | boolean | |
| undatedDraftCount | integer | |
ActivityWindowItem
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| state | string| null | |
| activityTypeId | uuid| null | |
| isGlobal | boolean | |
| isAllDay | boolean | |
| isDateOnly | boolean | |
| isMarker | boolean | |
| countsAsBusy | boolean | |
| startDateTime | date-time| null | |
| endDateTime | date-time| null | |
| timeZone | string| null | |
| start | date-time| null | |
| end | date-time| null | |
| calendars | string[]| null | |
| event | ActivityWindowItemEventInfo | |
| participants | ActivityWindowItemParticipantItem[]| null | |
| areas | ActivityWindowItemAreaItem[]| null | |
| lockedFields | string[]| null | |
| calendarSync | ActivityWindowItemCalendarSyncInfo | |
ActivityWindowItemEventInfo
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| organizationId | uuid | |
| imageUrl | string| null | |
ActivityWindowItemParticipantItem
| Field | Type | Description |
|---|
| id | uuid | |
| kind | string| null | |
| role | string| null | |
| name | string| null | |
ActivityWindowItemAreaItem
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
ActivityWindowItemCalendarSyncInfo
| Field | Type | Description |
|---|
| calendarName | string| null | |