v1
latestOpenAPI 3.1.02026-07-22162733.8 KBFlights
File the PIREP
Closes out the flight. The server:
- Saves every entry from flight_data (or the legacy flight_log) as ACARS LOG rows.
- Recomputes total distance by summing great-circle segments between the FLIGHT_PATH rows accumulated during /flights/update. If no FLIGHT_PATH rows exist, the dpt-to-arr great-circle distance is used.
- Files the PIREP with the supplied landing_rate, fuel_used, flight_time, and any of the optional zfw / block_fuel / block_time / level / route fields.
- Appends any comments as pilot comments on the PIREP.
- Calls phpVMS's submit() which fires the PirepFiled event, handles diversions, and applies rank-based auto-approval.
flight_time is in decimal hours here (the server multiplies by 60 to store minutes). Either uuid or tracking_id may carry the PIREP ID.
post/flights/complete
Request body
Response
PIREP filed and submitted.
Example response
{
"flight_number": "QFA1",
"route": "YSSY - YMML"
}