Request body
Required: callsign, aircraft, arrival (ICAO — see GET /data/airports; rejected with 400 if not real), cruisingFL. Rejected with 400 if any are missing. Everything else is optional. Accepted fields: callsign, aircraft, flightType (IFR/VFR, defaults to IFR when omitted), arrival (ICAO; rejected if not real), alternate (ICAO; rejected if not real), route, sid (see GET /data/airports/{icao}/sids — auto-generated from the session's airport when omitted), star (see GET /data/airports/{icao}/stars — not auto-filled, null unless you set it), runway (see GET /data/airports/{icao}/runways — defaults to the session's active runway when omitted; rejected with 400 if not a real runway at the session's airport), cruisingFL, clearedFL, stand, gate, remark, flightPlanTime (ISO timestamp, defaults to now), status (defaults to PENDING when omitted), clearance (boolean, defaults to false), hidden (boolean). departure, squawk, wtc, and id are always server-generated, and any value you send for departure/squawk/wtc/id is ignored. This action is logged — see GET /flight-logs.
{
"callsign": "BAW123",
"aircraft": "A320",
"flightType": "IFR",
"arrival": "MDPC",
"cruisingFL": "350"
}
curl -sS -X POST -H "Authorization: Bearer YOUR_PFC_LIVE_KEY" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"callsign":"BAW123","aircraft":"A320","flightType":"IFR","arrival":"MDPC","cruisingFL":"350"}' "https://pfcontrol.com/api/ext/v2/sessions/f0a25bac/flights"