Verfügbarkeit
Verfügbarkeit von Crew-Mitgliedern abrufen und aktualisieren — FTL-konform.
FTL-Grundlagen (EASA ORO.FTL)
| Limit | EASA-Wert |
|---|---|
| Max. Duty Time | 13 Stunden (erweiterbar auf 15h) |
| Max. Flight Duty Period | 13 Stunden |
| Mindest-Ruhezeit | 12 Stunden |
| Max. Block Hours/Jahr | 900 Stunden |
| Max. Block Hours/28 Tage | 100 Stunden |
| Max. Block Hours/7 Tage | 60 Stunden |
Verfügbarkeits-Objekt
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| id | integer | Optional | Eindeutige Eintrag-ID |
| crew_member_id | integer | Optional | ID des Crew-Mitglieds |
| from | date | Pflicht | Startdatum des Zeitraums |
| to | date | Pflicht | Enddatum des Zeitraums |
| type | enum | Pflicht | available | unavailable | annual_leave | sick_leave | standby | training |
| note | string|null | Optional | Optionale Anmerkung |
| approved_by | string|null | Optional | Name/ID des Genehmigers |
GET /crew/{id}/availability
GEThttps://api.aeroselect.io/api/v1/crew/crew/{id}/availability
cURLBash
curl "https://api.aeroselect.io/api/v1/crew/crew/201/availability?from=2026-06-01&to=2026-06-30" \
-H "X-API-Key: ak_live_YOUR_KEY"Response 200JSON
{
"data": [
{
"id": 601,
"crew_member_id": 201,
"from": "2026-06-15",
"to": "2026-06-22",
"type": "annual_leave",
"note": "Genehmigter Jahresurlaub",
"approved_by": "[email protected]"
}
]
}PATCH /crew/{id}/availability — Verfügbarkeit aktualisieren
PATCHhttps://api.aeroselect.io/api/v1/crew/crew/{id}/availability
FTL-Validierung
Das System prüft beim Erstellen/Ändern von Verfügbarkeiten automatisch gegen FTL-Limits. Verstöße werden mit HTTP 422 und einem detaillierten Fehler abgelehnt.
cURLBash
curl -X PATCH "https://api.aeroselect.io/api/v1/crew/crew/201/availability" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"entries": [
{ "from": "2026-07-01", "to": "2026-07-14", "type": "available" },
{ "from": "2026-07-15", "to": "2026-07-21", "type": "annual_leave", "note": "Sommerurlaub" }
]
}'