Docs

Get Department Roll Up Schedule

GET /Organizations/{orgId}/departments/{departmentId}/schedule

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

FieldTypeRequiredDescription
orgIduuidRequired
departmentIduuidRequired

Query Parameters

FieldTypeRequiredDescription
fromdate-timeOptional
todate-timeOptional

Response

FieldTypeDescription
activitiesActivityWindowItem[]| null
truncatedboolean
undatedDraftCountinteger

ActivityWindowItem

FieldTypeDescription
iduuid
namestring| null
statestring| null
activityTypeIduuid| null
isGlobalboolean
isAllDayboolean
isDateOnlyboolean
isMarkerboolean
countsAsBusyboolean
startDateTimedate-time| null
endDateTimedate-time| null
timeZonestring| null
startdate-time| null
enddate-time| null
calendarsstring[]| null
eventActivityWindowItemEventInfo
participantsActivityWindowItemParticipantItem[]| null
areasActivityWindowItemAreaItem[]| null
lockedFieldsstring[]| null
calendarSyncActivityWindowItemCalendarSyncInfo

ActivityWindowItemEventInfo

FieldTypeDescription
iduuid
namestring| null
organizationIduuid
imageUrlstring| null

ActivityWindowItemParticipantItem

FieldTypeDescription
iduuid
kindstring| null
rolestring| null
namestring| null

ActivityWindowItemAreaItem

FieldTypeDescription
iduuid
namestring| null

ActivityWindowItemCalendarSyncInfo

FieldTypeDescription
calendarNamestring| null