Crew Profile

Crew-Mitglieder auflisten, einzelne Profile abrufen und aviation-spezifische Felder bearbeiten.

Crew-Member-Objekt

FeldTypPflichtBeschreibung
idintegerOptionalEindeutige Crew-ID
employee_idstringOptionalMitarbeiternummerz.B. EMP-12345
first_namestringOptionalVorname
last_namestringOptionalNachname
emailstringOptionalDienstliche E-Mail-Adresse
roleenumOptionalcaptain | first_officer | cabin_crew | ground_ops | dispatcher
base_airportstringOptionalHeimatbasis (IATA)z.B. FRA
hire_datedateOptionalEinstellungsdatum
statusenumOptionalactive | on_leave | suspended | terminated
total_flight_hoursnumberOptionalGesamte Flugstunden (PIC + Co-Pilot)
created_atdatetimeOptionalProfil erstellt

GET /crew — Alle Crew-Mitglieder

GEThttps://api.aeroselect.io/api/v1/crew/crew
cURLBash
curl "https://api.aeroselect.io/api/v1/crew/crew?role=captain&status=active&base_airport=FRA" \
  -H "X-API-Key: ak_live_YOUR_KEY"
Response 200JSON
{
  "data": [
    {
      "id": 201,
      "employee_id": "EMP-12345",
      "first_name": "Thomas",
      "last_name": "Bauer",
      "role": "captain",
      "base_airport": "FRA",
      "hire_date": "2018-03-01",
      "status": "active",
      "total_flight_hours": 8420
    }
  ],
  "meta": { "total": 87, "page": 1, "per_page": 25 }
}

GET /crew/{id} — Einzelnes Profil

GEThttps://api.aeroselect.io/api/v1/crew/crew/{id}
Bash
curl "https://api.aeroselect.io/api/v1/crew/crew/201" \
  -H "X-API-Key: ak_live_YOUR_KEY"

PATCH /crew/{id} — Profil bearbeiten

PATCHhttps://api.aeroselect.io/api/v1/crew/crew/{id}
FeldTypPflichtBeschreibung
base_airportstringOptionalNeue Heimatbasis (IATA)
statusenumOptionalNeuer Status
total_flight_hoursnumberOptionalAktualisierte Flugstunden
cURLBash
curl -X PATCH "https://api.aeroselect.io/api/v1/crew/crew/201" \
  -H "X-API-Key: ak_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "base_airport": "MUC", "total_flight_hours": 8650 }'