Skip to content

Events

Role names and user_group_id values are listed in User groups.

Company calendar events, and the combined calendar feed (events, flights, bookings, base roster and training classes) that NEO’s agenda and calendar subscriptions read.

Event ids are UUIDs. Every call only sees the caller’s own company.

Endpoints Allowed groups
types, index, view, calendar Every group. calendar can also be read without a session through a signed feed URL
edit, delete 100 Company Administrator, 105 Operations Manager, 110 Compliance & Safety Manager, 120 Human Resources Manager, 130 Financial Manager, 135 Trainings Manager, 150 Chief Pilot

Any other group gets 403.


ID Name Color
1 Meetings #907630
2 Audit #904a30
3 Party #902b4c
4 Press Conference #90398c
5 Sport Events #4f3b90
6 Operations start #345090
7 Operations finish #3b7790

GET /events/types.json

Returns the full list of event type definitions, keyed by event_type_id. The response is the bare object.

{
"1": { "name": "Meetings", "color": "#907630" },
"2": { "name": "Audit", "color": "#904a30" }
}

GET /events/index.json

GET /events/index/base:{baseId}.json

Returns the company’s events, ordered by start. Groups 100 to 120 see every event; any other group (130 Financial Manager and above) sees only the events it is a recipient of, by user ID or by user group.

Parameter Type Description
start string | integer Events starting after this moment: ISO 8601 / any date string, or unix seconds. Defaults to one month ago (also when the value cannot be read)
end string | integer Events starting before this moment. No upper limit when omitted
Parameter Description
base:{id} Only events held at this base (base_id:{id} is accepted too)
course_id:{id} Only events linked to this training course (Event.foreign_id). Ignored when a base filter is set

A bare array. start and end are milliseconds; end is 0 for an all-day event with no end.

[
{
"id": "3512bd57-c6c5-493c-bc63-eaf6749aa784",
"start": 1736505600000,
"end": 1736509200000,
"base_id": "0b3c6a52-7d1e-4f0a-9a7e-2f5c1d8e4b10",
"details": "Safety Briefing",
"modified": "1736496000",
"title": "Safety Briefing",
"eventType": "Meetings",
"color": "#907630",
"user": "John Doe",
"url": "/events/view/3512bd57-c6c5-493c-bc63-eaf6749aa784",
"base": "Madrid Base"
}
]

details repeats the event name here; the full description is in View Event. user is the event’s author, base the base name (null when none).


GET /events/view/{id}.json

Full details for a single event including recipients. The response is the bare event object.

Groups 100 to 140 can open any event of the company. Any other group (145 Flight Dispatcher and above) can only open events it is a recipient of, and gets an empty EventRecipient list. An event with no recipients at all answers 404 for everyone.

Parameter Type Description
id UUID Event ID
{
"Event": {
"id": "3512bd57-c6c5-493c-bc63-eaf6749aa784",
"event_type_id": "1",
"user_id": "50",
"company_id": "c1d2e3f4-a5b6-7890-abcd-ef1234567890",
"base_id": "0b3c6a52-7d1e-4f0a-9a7e-2f5c1d8e4b10",
"foreign_id": null,
"name": "Safety Briefing",
"details": "<p>Monthly safety meeting</p>",
"start": "1736505600",
"end": "1736509200",
"all_day": false,
"status": "suggested",
"view_count": "0",
"created": "1736496000",
"modified": "1736496000"
},
"EventType": { "name": "Meetings" },
"Base": { "name": "Madrid Base" },
"EventRecipient": [
{
"id": "5343",
"event_id": "3512bd57-c6c5-493c-bc63-eaf6749aa784",
"user_group_id": "190",
"user_id": null,
"created": "1736496000",
"UserGroup": { "name": "Pilot" },
"User": []
},
{
"id": "5344",
"event_id": "3512bd57-c6c5-493c-bc63-eaf6749aa784",
"user_group_id": null,
"user_id": "100",
"created": "1736496000",
"UserGroup": { "name": null },
"User": { "id": "100", "UserDetail": { "name": "John", "surname": "Doe" } }
}
]
}

start, end, created and modified are unix seconds (as strings). details is rich text (HTML).


POST /events/edit.json

Create or update a calendar event. Groups 100, 105, 110, 120, 130, 135 and 150 only. With Event.id it updates that event (404 Event not found when it is not one of the company’s events); without it, it creates one. The caller is stored as the event’s author. A non-POST request or an empty body returns 400 Invalid data or request method.

Request Body (form-encoded data[Event][...] or JSON)

Section titled “Request Body (form-encoded data[Event][...] or JSON)”
Field Type Required Description
Event.id UUID No Existing event ID to update
Event.name string Yes Event name
Event.start integer | string Yes Start: unix seconds, or a date string
Event.end integer | string No End: unix seconds, or a date string
Event.all_day boolean No All-day event flag
Event.event_type_id integer No Event type, see Event Types
Event.details string No Description, rich text (HTML is cleaned on save)
Event.base_id UUID No Base where the event is held (used by the base: filter of List Events)
Event.foreign_id UUID No Related training course (used by the course_id: filter)
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
{
"result": true,
"errors": null
}

On a validation failure result is false and errors lists the fields, for example { "name": ["Required field"] }.


GET /events/delete/{id}.json

Delete a calendar event and its recipients. Groups 100, 105, 110, 120, 130, 135 and 150 only. The event must belong to the caller’s company (404 otherwise). POST works too.

Parameter Type Description
id UUID Event ID
{
"result": true,
"message": "The event has been deleted.",
"id": "3512bd57-c6c5-493c-bc63-eaf6749aa784"
}

On failure result is false and message is The event could not be deleted.


GET /events/calendar.json

GET /events/calendar/{userId}.json

GET https://fmc.flylogs.com/v1/calendar/{userId}/?sig={signature}

Returns one user’s combined calendar: the events they are a recipient of, their landed flights, their bookings, their base roster blocks and their training classes (as instructor and as invited student). Accepts a date range via query string.

Whose calendar:

Call Calendar returned
/events/calendar.json The caller’s own
/events/calendar/{userId}.json, caller in groups 100 to 170 That user’s, who must belong to the caller’s company (404 User not found otherwise)
/events/calendar/{userId}.json, any other group The caller’s own ({userId} is ignored)
/calendar/{userId}/?sig={signature} That user’s, without a session. This is the subscription URL for calendar apps

The signature is the user’s id multiplied by the user’s account creation time (unix seconds). Calendar apps that append .ics to the URL (sig=7088327317827.ics) are accepted. A wrong signature, or a deleted user, returns 404 User not found. NEO shows each user their own subscription URL.

Called with .json, the response is JSON. Without it (the subscription URL), it is an iCalendar file (text/calendar, calendar.ics, calendar name FLYLOGS), with a display alarm 3 hours before each item.

Parameter Type Description
start string Items starting after this date (any date string). Defaults to one month ago
end string Items starting before this date. Defaults to one year ahead, so a subscribed feed always covers the coming year
scope string company: see Company bookings feed
Parameter Description
base_id:{id} Only events linked to this ID (Event.foreign_id), and no flights, bookings, roster or classes
course_id:{id} Only events linked to this training course, and no flights, bookings, roster or classes
eventType Items
The event type name (Meetings, Audit…) Events the user receives, by user or by user group, in the range
Flight Landed flights where the user was PIC, SIC or supervisor, by block times in the range, the 200 most recent
Scheduled Flight Bookings where the user is PIC, SIC or supervisor, starting in the range, not DRAFT or CANCELED, ending less than 4 hours ago or later; up to 1000
Base Schedule The user’s base roster blocks overlapping the range: DUTY green #16a34a, STANDBY amber #f59e0b, OFF red #ef4444, REST slate #64748b
<TYPE> TRAINING - Lesson / <TYPE> TRAINING - Exam Training classes the user teaches, or is invited to as a student (directly or through a pilot group). Filtered by start/end only when they are sent. end is the start plus the lesson or exam length, or 2 hours when none is set

A bare array. start and end are unix seconds (unlike List Events, which uses milliseconds); they come as strings except for roster blocks and student classes.

[
{
"id": "3512bd57-c6c5-493c-bc63-eaf6749aa784",
"start": "1736505600",
"end": "1736509200",
"details": "<p>Monthly safety meeting</p>",
"modified": "1736496000",
"title": "Safety Briefing",
"eventType": "Meetings",
"color": "#907630",
"resourceId": "",
"location": "",
"url": "/events/view/3512bd57-c6c5-493c-bc63-eaf6749aa784",
"base": "Madrid Base"
},
{
"id": "88120",
"title": "EC-ABC LEBL LEMD",
"details": "EC-ABC IFR Training\nJohn Doe",
"start": "1736505000",
"end": "1736511900",
"eventType": "Flight",
"color": "#8fff1e",
"resourceId": "45",
"location": "LEBL LEMD",
"url": "/flights/view/88120",
"modified": "1736512000"
},
{
"id": "40123",
"title": "EC-ABC LEBL LEMD",
"details": "Training 0800-1000Z\n[LEBL -> LEMD] \nAC EC-ABC (C172) \nPIC John Doe +34600000000\n",
"start": "1736503200",
"end": "1736510400",
"eventType": "Scheduled Flight",
"color": "#1089e0",
"resourceId": "45",
"location": "LEBL LEMD",
"url": "/schedules/view/40123",
"status": "SCHEDULED",
"modified": "1736500000"
},
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "DUTY @ Madrid Base",
"details": "Base schedule: DUTY - Madrid Base",
"start": 1736496000,
"end": 1736539200,
"eventType": "Base Schedule",
"color": "#16a34a",
"resourceId": "",
"location": "Madrid Base",
"url": "/bases/view/0b3c6a52-7d1e-4f0a-9a7e-2f5c1d8e4b10",
"modified": "1736400000"
},
{
"id": "7c1e9a20-1b2c-4d3e-8f90-a1b2c3d4e5f6",
"title": "Meteorology - Weather Systems",
"details": "THEORETICAL TRAINING - Lesson",
"date": "2025-01-09T22:00:00+00:00",
"start": 1736460000,
"end": 1736467200,
"eventType": "THEORETICAL TRAINING - Lesson",
"color": "#3498db",
"resourceId": "7c1e9a20-1b2c-4d3e-8f90-a1b2c3d4e5f6",
"location": "Classroom A",
"url": "/trainings/onsite/class/7c1e9a20-1b2c-4d3e-8f90-a1b2c3d4e5f6",
"modified": "1736300000"
}
]
Field Description
status Bookings only: the booking status (SCHEDULED, CONFIRMED, DISPATCHED…); color is that status’s color
resourceId Aircraft ID for flights and bookings, class ID for training classes, empty otherwise
base Events only: base name, or null
date Classes the user attends as a student only: the class start in ISO 8601
modified Unix seconds (as strings), the last change; for classes, their creation time

GET /events/calendar.json?scope=company

GET https://fmc.flylogs.com/v1/calendar/{userId}/?scope=company&sig={signature}

With scope=company the feed holds every active booking of the company (all aircraft, all crew) instead of the user’s own items: bookings not DRAFT or CANCELED that end after 7 days ago and start before 3 months ahead, up to 5000. Each title starts with the aircraft registration. The iCalendar version is named FLYLOGS COMPANY. start, end and the other query parameters are ignored.

Only for users in groups 100 to 150 (Company Administrator to Chief Pilot). The group of the user whose calendar it is gets checked on every fetch, so a subscribed company feed stops working (404 User not found) as soon as that user moves to another group. scope values that start with company (for example company.ics) are accepted.