Returns events for the authenticated user's company. Users with user_group_id > 120 see only events they are a recipient of (by user ID or user group). Accepts date range via query string.
Query Parameters
Parameter
Type
Description
start
string
Start datetime filter. Events with start > this value. Defaults to 1 month ago.
end
string
End datetime filter. Events with start < this value.
base_id
string (named param)
Filter events by base ID
course_id
string (named param)
Filter events by course ID
Response
Returns a flat array of event objects. Timestamps are in milliseconds.
View Event
GET/events/view/{id}.json
Full details for a single event including recipients. Users with user_group_id > 140 can only view events they are a recipient of; their EventRecipient list is cleared in the response.
Path Parameters
Parameter
Type
Description
id
UUID
Event ID
Response
Create / Edit Event
POST/events/edit.json
Create or update a calendar event. If Event.id is provided and found, it updates the existing event. Recipients are replaced entirely on each save.
Request Body
Field
Type
Required
Description
Event.id
UUID
No
Existing event ID to update
Event.name
string
Yes
Event name
Event.start
number
Yes
Start time (Unix timestamp)
Event.end
number
No
End time (Unix timestamp)
Event.all_day
boolean
No
All-day event flag
Event.details
string
No
Event description
Event.base_id
UUID
No
Base/location ID
Event.foreign_id
UUID
No
Related entity ID (base or course)
EventRecipient.user_group_id
array
No
User group IDs that receive this event
EventRecipient.user_id
array
No
Specific user IDs that receive this event
Response
Delete Event
GET/events/delete/{id}.json
Delete a calendar event. Event must belong to the authenticated user's company.
Path Parameters
Parameter
Type
Description
id
UUID
Event ID
Response
Full Calendar Feed
GET/events/calendar.json
GET/events/calendar/{userId}.json
GET/events/calendar/{userId}/{created}.json
Returns a unified calendar feed combining events, flights, scheduled flights, and training classes for the target user. Accepts date range via query string.
Authentication modes:
No params: authenticated user's own calendar.
userId only: managers (user_group_id < 171) may view other users' calendars.
userId + created (user's created timestamp): unauthenticated access — used for external calendar feed URLs.
Returns JSON when called as a JSON request, or text/calendar (iCal) otherwise.
Query Parameters
Parameter
Type
Description
start
string
Filter events starting after this date. Defaults to 1 month ago.
end
string
Filter events starting before this date.
base_id
string (named)
Filter events by base ID
course_id
string (named)
Filter events by course ID
Response
Flat array of calendar items. Event timestamps are Unix seconds (unlike the index endpoint which uses milliseconds).