GET/Activities/window
Lists the activities in a date range that the caller can read, once each, with the calendars each is
on, for the calendar and gantt. from and to are instants (to exclusive, at most 400 days after from). A
marker matches on its instant and a date-only draft on its day; drafts with no start are not listed but
counted in undatedDraftCount. calendars narrows to {kind}:{id} entries (event token: event, crew,
collaborator, area; organization token: organization, crew, department, location) or me, the caller's
own activities across every event they are crew on; omit it for every calendar the caller can read. A
calendar only narrows, so an id the caller cannot read returns nothing. With an event token it reads
that event and needs event basic access; with an organization token and no event token it reads the
organization's own activities and needs organization basic access. Returns at most 2,000 rows, with
truncated set when capped. Times are wall-clock; timeZone is null while activities have no zone, and
start and end then read that wall-clock as UTC. With an organization token, from and to may both be omitted
to list every organization activity the caller can read, any date or none, undated last (the org Table);
an event token always needs both.
Query Parameters
| Field | Type | Required | Description |
|---|
| from | date-time | Optional | |
| to | date-time | Optional | |
| calendars | string[] | 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 | |