Role names and
user_group_idvalues are listed in User groups.
Groups of pilots for bulk operations (activation, welcome emails, billing, message recipients, training filters). Every endpoint is scoped to the caller’s company: a group of another company returns 404.
Who can call them:
| Endpoints | User groups |
|---|---|
| List, View, List Group Pilots | Company Administrator, Operations Manager, Compliance & Safety Manager, Human Resources Manager, Financial Manager, Trainings Manager, Crew Scheduling, Flight Dispatcher, Chief Pilot and Flight Instructor (100–170, not 175), plus Mechanic (300). List is also open to Auditor (250) |
| Create, Edit, Delete, Bulk Activate, Welcome Emails | 100, 105, 110, 120, 130 and 150 |
Any other group gets 403 Forbidden.
List Pilot Groups
Section titled “List Pilot Groups”GET /manager/pilot_groups.json
All pilot groups of the company, ordered by name, each with a pilot_count.
Response
Section titled “Response”{ "pilotGroups": [ { "PilotGroup": { "id": "6f1c2a7e-0b8d-4c55-9e3a-2d1f0c9b7a10", "company_id": "5eb83b98-16a8-4e19-aa62-603bb22030ad", "name": "Instructors", "description": "Staff instructors", "color": "#0079cc", "start": null, "end": null, "created": "1750000000", "modified": "1750000000", "pilot_count": 5 } } ]}start, end, created and modified are unix timestamps. pilot_count counts every membership row of the group.
View Pilot Group
Section titled “View Pilot Group”GET /manager/pilot_groups/view/{id}.json
One group with its members (deleted users are left out). Each member also lists the other groups they belong to, in PilotGroups.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
| id | UUID | Pilot group ID |
Response
Section titled “Response”{ "PilotGroup": { "id": "6f1c2a7e-0b8d-4c55-9e3a-2d1f0c9b7a10", "company_id": "5eb83b98-16a8-4e19-aa62-603bb22030ad", "name": "Instructors", "description": "Staff instructors", "color": "#0079cc", "start": null, "end": null, "created": "1750000000", "modified": "1750000000" }, "User": [ { "id": "100", "active": true, "email": "pilot@example.com", "email_status": "confirmed", "user_group_id": "170", "PilotGroupsUser": { "id": "9001", "user_id": "100", "pilot_group_id": "6f1c2a7e-0b8d-4c55-9e3a-2d1f0c9b7a10" }, "UserGroup": { "name": "Flight Instructor" }, "UserDetail": { "name": "John", "surname": "Doe" }, "PilotGroups": [] } ]}Returns 404 Invalid Pilot group when the group is not the company’s.
List Group Pilots (flat)
Section titled “List Group Pilots (flat)”GET /manager/pilot_groups/pilots/{id}.json
The members of a group as a flat array, one object per pilot, without nested User / UserDetail wrappers. Deleted users are left out. Useful for pickers and exports.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
| id | UUID | Pilot group ID |
Response
Section titled “Response”The body is the array itself:
[ { "id": "100", "email": "pilot@example.com", "email_status": "confirmed", "name": "John", "surname": "Doe", "user_group_id": "170", "active": true, "passport": "X1234567", "dob": "1990-05-14", "phonecode": "34", "phone": "600000000", "phonecode2": null, "phone2": null, "nationality": "ES", "created": "1750000000" }]email_status is one of unconfirmed, confirmed, bounced, invalid, blocked or removed. Returns 404 Invalid Pilot group when the group is not the company’s.
Create Pilot Group
Section titled “Create Pilot Group”POST /manager/pilot_groups/add.json
Create a group and, optionally, its members. Form-encoded. POST only; a request without a name returns 400.
Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
| data[PilotGroup][name] | string | Yes | Group name, up to 50 characters (trimmed) |
| data[PilotGroup][description] | string | No | Free text |
| data[PilotGroup][color] | string | No | Hex colour, e.g. #0079cc (the default) |
| data[PilotGroup][start] | string | No | Start date, YYYY-MM-DD. Stored as a unix timestamp |
| data[PilotGroup][end] | string | No | End date, YYYY-MM-DD. Stored as a unix timestamp |
| data[User][User][] | string | No | User id of a member. Repeat the field once per member. Ids that are not users of your company are dropped |
Response
Section titled “Response”{ "result": true, "message": "The new group has been created."}Edit Pilot Group
Section titled “Edit Pilot Group”POST /manager/pilot_groups/edit/{id}.json
PUT /manager/pilot_groups/edit/{id}.json
Update a group. Takes the same fields as Create Pilot Group. The id can also be sent as data[PilotGroup][id] instead of in the path. Any other method returns 400.
- Fields you leave out are not changed.
- When
data[User][User][]is sent, it replaces the whole member list. Leave the key out to keep the members as they are. Ids that are not users of your company are dropped.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
| id | UUID | Pilot group ID |
Response
Section titled “Response”{ "result": true, "message": "The Pilot group has been saved."}Returns 404 Invalid Pilot group when the group is not the company’s.
Delete Pilot Group
Section titled “Delete Pilot Group”POST /manager/pilot_groups/delete/{id}.json
DELETE /manager/pilot_groups/delete/{id}.json
Delete a group. Its members are not deleted, only the group and the memberships.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
| id | UUID | Pilot group ID |
Response
Section titled “Response”{ "result": true, "message": "The Pilot group has been deleted."}Bulk Activate / Deactivate Group
Section titled “Bulk Activate / Deactivate Group”GET /manager/pilot_groups/do/{pilotGroupId}/{action}.json
Activate or deactivate every member of a group (deleted users are skipped). Only users whose active state differs from the target are changed. Callers above user_group_id 150 get 400.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
| pilotGroupId | UUID | Pilot group ID |
| action | string | 1 to activate, 0 to deactivate |
Response
Section titled “Response”{ "result": true, "message": "Pilot status changed"}Send Welcome Emails to Group
Section titled “Send Welcome Emails to Group”GET POST /manager/pilot_groups/welcomize/{pilotGroupId}.json
Sends the welcome / account confirmation email to every active member of the group who has an email address. Callers above user_group_id 150 get 400.
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Description |
|---|---|---|
| pilotGroupId | UUID | Pilot group ID |
Response
Section titled “Response”{ "result": true, "message": "3 emails sent"}