Diensteinteilung
Duties (Dienste) für Crew-Mitglieder planen und verwalten — FTL-Limits werden automatisch geprüft.
Duty-Objekt
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| id | integer | Optional | Eindeutige Duty-ID |
| crew_member_id | integer | Pflicht | ID des Crew-Mitglieds |
| flight_ids | array | Optional | IDs der zugehörigen Flüge |
| report_time_utc | datetime | Pflicht | Briefingzeit / Report-in (UTC) |
| release_time_utc | datetime | Optional | Geplante Release-Zeit (UTC) |
| duty_type | enum | Pflicht | flight_duty | ground_duty | standby | positioning | rest |
| status | enum | Optional | planned | confirmed | active | completed | cancelled |
| duty_hours | number | Optional | Gesamte Dienstdauer in Stunden |
| block_hours | number | Optional | Flugstunden im Dienst |
| cumulative_duty_hours_7d | number | Optional | Kumulative Dienststunden (letzte 7 Tage) |
| cumulative_block_hours_28d | number | Optional | Kumulative Flugstunden (letzte 28 Tage) |
FTL-Limits Übersicht
| Grenzwert | Limit |
|---|---|
| Max. Duty Time | 13 h (erweiterbar auf 15 h mit Zustimmung) |
| Max. FDP | 13 h |
| Max. Block Hours / 7 Tage | 60 h |
| Max. Block Hours / 28 Tage | 100 h |
| Max. Block Hours / Jahr | 900 h |
| Min. Ruhezeit zwischen Diensten | 12 h |
| Max. Starts ohne ausgedehnte Erholung | keine starre Grenze — duty-time-abhängig |
GET /duties
GEThttps://api.aeroselect.io/api/v1/crewops/duties
cURLBash
curl "https://api.aeroselect.io/api/v1/crewops/duties?crew_member_id=201&date=2026-06-01" \
-H "X-API-Key: ak_live_YOUR_KEY"Response 200JSON
{
"data": [
{
"id": 1001,
"crew_member_id": 201,
"flight_ids": [5001, 5002],
"report_time_utc": "2026-06-01T05:30:00Z",
"release_time_utc": "2026-06-01T18:45:00Z",
"duty_type": "flight_duty",
"status": "confirmed",
"duty_hours": 13.25,
"block_hours": 9.5,
"cumulative_duty_hours_7d": 38.5,
"cumulative_block_hours_28d": 67.0
}
]
}POST /duties — Dienst planen
POSThttps://api.aeroselect.io/api/v1/crewops/duties
FTL-Validierung
Der POST-Endpoint prüft automatisch alle FTL-Limits. Bei einem Verstoß wird ein HTTP 422 mit detaillierter Fehlermeldung zurückgegeben.
cURLBash
curl -X POST "https://api.aeroselect.io/api/v1/crewops/duties" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"crew_member_id": 201,
"flight_ids": [5010, 5011],
"report_time_utc": "2026-06-10T07:00:00Z",
"duty_type": "flight_duty"
}'PATCH /duties/{id}/status
PATCHhttps://api.aeroselect.io/api/v1/crewops/duties/{id}/status
cURLBash
curl -X PATCH "https://api.aeroselect.io/api/v1/crewops/duties/1001/status" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "completed" }'