Bidding

Crew-Mitglieder können Dienstplan-Präferenzen einreichen. Dispatcher genehmigen oder lehnen Bid-Requests ab.

Bid-Request-Objekt

FeldTypPflichtBeschreibung
idintegerOptionalEindeutige Bid-Request-ID
crew_member_idintegerPflichtEinreichender Crew-Member
typeenumPflichtpairing_preference | day_off | swap_request | vacation
priorityenumOptionallow | normal | high
detailsobjectPflichtTyp-spezifische Details (siehe unten)
statusenumOptionalpending | approved | rejected | withdrawn
reviewer_idinteger|nullOptionalDispatcher, der den Request bearbeitet hat
rejection_reasonstring|nullOptionalGrund bei Ablehnung
submitted_atdatetimeOptionalEinreichungszeitpunkt
reviewed_atdatetime|nullOptionalBearbeitungszeitpunkt

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." }'