Flights
Begin tracking a booked flight
Changed onPrefiles a PIREP for the chosen bid and returns a tracking_id (the new PIREP's UUID) that subsequent /flights/update and /flights/complete calls reference.
If bid_id is omitted, the phpVMS reference implementation falls back to the pilot's most recent bid. This exists for older client builds that send an empty body. New integrations should always send bid_id.
Aircraft selection priority on the server:
- SimBrief-attached aircraft (if the pilot has a SimBrief OFP for this flight)
- The bid's aircraft_id (if the bid was made against a specific airframe)
- The first available aircraft from the flight's subfleets
If none can be resolved, the server returns 500 with "No aircraft attached to bid".
post/flights/start
Request
- Base URLhttps://crew.example.com/api/stratos
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
PIREP prefiled. Use tracking_id on subsequent flight calls.
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info