GET /calendarEvents
Changed onReturns a list of CalendarEvents. The list can be filtered by user name, event type or active events only.
Request
- Base URLhttps://api.fergus.com
- Auth
- OAuth 2Authorization codehttps://auth.fergus.com/oauth2/authorizeToken URLhttps://auth.fergus.com/oauth2/token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The start date for filtering calendar events, in ISO 8601 format.
-
The time portion is discarded only the date is used.
-
A timezone offset (+/-HH:MM or +/-HHMM) is expected to ensure accurate timezone interpretation.
-
If none is provided, the value will be treated as UTC.
Defaults to the current day if not provided.
The filterDateFrom (or currentDate if not provided) sets the start of the period.
-
For DAY and THREE_DAY options, it's that exact date.
-
For WEEK and MONTH options, it's the week or month that includes that date (weeks run Monday to Sunday).
-
For FORTNIGHT option, it starts at the Monday of the week that contains that date.
This defaults to WEEK if not provided.
Response
Successful Response
Example response
{
"data": [
{
"startTime": "2021-01-01T07:00:00.000Z",
"endTime": "2021-01-01T17:00:00.000Z"
}
]
}Changes
- breaking
for the
queryrequest parameterfilterDateFrom, default value2026-10-16T00:00:00.000+13:00was removed
- breaking
- breaking
for the
queryrequest parameterfilterDateFrom, default value was changed from2026-10-09T00:00:00.000+13:00to2026-10-16T00:00:00.000+13:00
- breaking