Bidding
Crew-Mitglieder können Dienstplan-Präferenzen einreichen. Dispatcher genehmigen oder lehnen Bid-Requests ab.
Bid-Request-Objekt
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| id | integer | Optional | Eindeutige Bid-Request-ID |
| crew_member_id | integer | Pflicht | Einreichender Crew-Member |
| type | enum | Pflicht | pairing_preference | day_off | swap_request | vacation |
| priority | enum | Optional | low | normal | high |
| details | object | Pflicht | Typ-spezifische Details (siehe unten) |
| status | enum | Optional | pending | approved | rejected | withdrawn |
| reviewer_id | integer|null | Optional | Dispatcher, der den Request bearbeitet hat |
| rejection_reason | string|null | Optional | Grund bei Ablehnung |
| submitted_at | datetime | Optional | Einreichungszeitpunkt |
| reviewed_at | datetime|null | Optional | Bearbeitungszeitpunkt |
GET /bid-requests — Anfragen auflisten
GEThttps://api.aeroselect.io/api/v1/crewops/bid-requests
cURLBash
curl "https://api.aeroselect.io/api/v1/crewops/bid-requests?status=pending" \
-H "X-API-Key: ak_live_YOUR_KEY"Response 200JSON
{
"data": [
{
"id": 1101,
"crew_member_id": 215,
"type": "day_off",
"priority": "normal",
"details": {
"date": "2026-06-20",
"reason": "Familienveranstaltung"
},
"status": "pending",
"reviewer_id": null,
"submitted_at": "2026-05-20T09:00:00Z"
}
]
}POST /bid-requests — Anfrage einreichen
POSThttps://api.aeroselect.io/api/v1/crewops/bid-requests
cURL — Freier TagBash
curl -X POST "https://api.aeroselect.io/api/v1/crewops/bid-requests" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"crew_member_id": 215,
"type": "day_off",
"priority": "high",
"details": {
"date": "2026-07-04",
"reason": "Hochzeit"
}
}'cURL — Pairing-PräferenzBash
curl -X POST "https://api.aeroselect.io/api/v1/crewops/bid-requests" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"crew_member_id": 201,
"type": "pairing_preference",
"priority": "normal",
"details": {
"preferred_routes": ["FRA-JFK", "FRA-ORD"],
"avoid_routes": ["FRA-MUC"],
"period": { "from": "2026-07-01", "to": "2026-07-31" }
}
}'PATCH /bid-requests/{id}/approve — Anfrage genehmigen/ablehnen
PATCHhttps://api.aeroselect.io/api/v1/crewops/bid-requests/{id}/approve
cURL — GenehmigenBash
curl -X PATCH "https://api.aeroselect.io/api/v1/crewops/bid-requests/1101/approve" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "decision": "approved" }'cURL — AblehnenBash
curl -X PATCH "https://api.aeroselect.io/api/v1/crewops/bid-requests/1101/approve" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "decision": "rejected", "rejection_reason": "Kein Ersatz für diesen Tag verfügbar." }'