Position and phase update
Changed onSent by the desktop client at the pilot's chosen position-update interval (currently 15, 30, or 60 seconds) while a flight is active. Each call appends a FLIGHT_PATH point to the PIREP and updates the PIREP's status based on the reported phase.
The reference phpVMS module reads phase case-insensitively and maps it to a PIREP status:
| Stratos phase | phpVMS status |
|---|---|
| BOARDING | BOARDING |
| PUSH_BACK | PUSHBACK_TOW |
| TAXI / REJECTED_TAKE_OFF / TAXI_TO_GATE | TAXI |
| TAKE_OFF | TAKEOFF |
| CLIMB / CRUISE | ENROUTE |
| DESCENT / GO_AROUND | APPROACH |
| APPROACH | APPROACH_ICAO |
| FINAL | LANDING |
| LANDED | LANDED |
| DEBOARDING | ON_BLOCK |
| PAUSED | PAUSED |
| UNKNOWN, or any other value | ENROUTE |
It also accepts lower-case values and the older names taxi_in, arrived, on_block, climb_out and diverted. The first update that reaches TAKEOFF, INIT_CLIM or ENROUTE sets block_off_time. The first update that reaches ON_BLOCK or ARRIVED sets block_on_time. The server's running flight time is recomputed from the first ACARS row's created_at each update.
Either uuid or tracking_id may carry the PIREP ID (the client uses them interchangeably).
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
Update accepted. The reference implementation returns an empty body.
Changes
- breaking
removed the enum value
approachof the request property - breaking
removed the enum value
arrivedof the request property - breaking
removed the enum value
boardingof the request property - breaking
removed the enum value
climbof the request property - breaking
removed the enum value
cruiseof the request property - breaking
removed the enum value
deboardingof the request property - breaking
removed the enum value
descentof the request property - breaking
removed the enum value
finalof the request property - breaking
removed the enum value
go_aroundof the request property - breaking
removed the enum value
landedof the request property - breaking
removed the enum value
push_backof the request property - breaking
removed the enum value
rejected_take_offof the request property - breaking
removed the enum value
take_offof the request property - breaking
removed the enum value
taxiof the request property - breaking
removed the enum value
taxi_inof the request property - info
added the new
APPROACHenum value to the request property - info
added the new
BOARDINGenum value to the request property - info
added the new
CLIMBenum value to the request property - info
added the new
CRUISEenum value to the request property - info
added the new
DEBOARDINGenum value to the request property - info
added the new
DESCENTenum value to the request property - info
added the new
FINALenum value to the request property - info
added the new
GO_AROUNDenum value to the request property - info
added the new
LANDEDenum value to the request property - info
added the new
PAUSEDenum value to the request property - info
added the new
PUSH_BACKenum value to the request property - info
added the new
REJECTED_TAKE_OFFenum value to the request property - info
added the new
TAKE_OFFenum value to the request property - info
added the new
TAXIenum value to the request property - info
added the new
TAXI_TO_GATEenum value to the request property - info
added the new
UNKNOWNenum value to the request property
- breaking