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
Error
A valid request URL is required to generate request examples
Custom PIREP fields keyed by slug, written to pirep_field_values (source ACARS). Sent only when Where PIREP fields go (on Flight Tracking's Additional fields tab in Console) is set to Nested: it carries every additional field ticked under PIREP plus simulator_version. With Top level the same fields arrive as flat top-level keys instead, which this endpoint ignores.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Skyvex Software","colors":{"primary":"#1847ED","light":"#4D7AFF","dark":"#1847ED"},"logo":{"light":"https://mintcdn.com/skyvexsoftware/6_XhdPqMDHXpebNZ/logo/light.svg?fit=max\u0026auto=format\u0026n=6_XhdPqMDHXpebNZ\u0026q=85\u0026s=b7646e33ca0db1bb774ae0adfe5f103a","dark":"https://mintcdn.com/skyvexsoftware/6_XhdPqMDHXpebNZ/logo/dark.svg?fit=max\u0026auto=format\u0026n=6_XhdPqMDHXpebNZ\u0026q=85\u0026s=61b26441250e511c3e7a739f31eedddb","href":"/introduction"},"favicon":"https://mintcdn.com/skyvexsoftware/NSjGwMiBraCrWUYE/favicon.ico?fit=max\u0026auto=format\u0026n=NSjGwMiBraCrWUYE\u0026q=85\u0026s=a1ce6302b2fe1ff044d20452445f7603","background":{"image":{"light":"https://mintcdn.com/skyvexsoftware/FOlDtkFINCHJBZH_/images/background-light.svg?fit=max\u0026auto=format\u0026n=FOlDtkFINCHJBZH_\u0026q=85\u0026s=f94dbe916d3ee8d4d95a6f36abfa7926","dark":"https://mintcdn.com/skyvexsoftware/FOlDtkFINCHJBZH_/images/background-dark.svg?fit=max\u0026auto=format\u0026n=FOlDtkFINCHJBZH_\u0026q=85\u0026s=aecbc4920e445f0aebe89ee6364f0149"},"decoration":"grid"},"navbar":{"links":[{"href":"https://skyvexsoftware.com/login","label":"Sign in"}],"primary":{"type":"button","label":"Request access","href":"https://skyvexsoftware.com/#waitlist"}},"footer":{"socials":{"website":"https://skyvexsoftware.com","discord":"https://discord.skyvexsoftware.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"thumbnails":{"preset":"headline","appearance":"dark","surface":"neutral","background":"https://mintcdn.com/skyvexsoftware/tdbSYF_jOAOeZ9Zz/images/og-background.png?fit=max\u0026auto=format\u0026n=tdbSYF_jOAOeZ9Zz\u0026q=85\u0026s=e0bd2e1beaa969bbd3b8271a664afe6a","fonts":{"family":"Geist","source":"fonts/Geist-Medium.ttf","format":"ttf"},"eyebrow":{"style":"plain","color":"#9DB7FF"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Skyvex Software","icon":"home","href":"https://skyvexsoftware.com"},{"anchor":"Download (v2.26.0)","icon":"download","href":"https://skyvexsoftware.com/download"},{"anchor":"Stratos SDK (v0.27.0)","icon":"npm","href":"https://www.npmjs.com/package/@skyvexsoftware/stratos-sdk"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"skyvexsoftware","hasAudioNarration":false,"actualSubdomain":"skyvexsoftware","customDomains":["docs.skyvexsoftware.com"],"gitSource":{"type":"github","owner":"skyvexsoftware","repo":"stratos","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae691b288760f93b1ff8ab8","collectionId":"a84b00ff-c8bc-4e99-8919-c3aaba532e37","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae691b288760f93b1ff8ab8"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ae7c6f56bddb0a059f6cfc2","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Plugin SDK","count":44},{"language":"default","tag":"Console","count":33},{"language":"default","tag":"Stratos","count":25},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"Background Module","count":16},{"language":"default","tag":"Endpoints","count":16},{"language":"default","tag":"UI Module","count":14},{"language":"default","tag":"Plugin Context (ctx)","count":13},{"language":"default","tag":"Get Started","count":12},{"language":"default","tag":"Hooks","count":11}],"searchSettings":{"maxResults":10}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/flights/file-the-pirep","slug":"/api-reference/flights/file-the-pirep","pageMetadata":{"title":"File the PIREP","description":"Closes out the flight. The server:\n\n1. Saves every entry from `flight_data` (or the legacy `flight_log`) as ACARS LOG rows.\n2. 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.\n3. 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.\n4. Appends any `comments` as pilot comments on the PIREP.\n5. Calls phpVMS's `submit()` which fires the `PirepFiled` event, handles diversions, and applies rank-based auto-approval.\n\n`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.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/complete","href":"/api-reference/flights/file-the-pirep","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n ol: \"ol\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Closes out the flight. The server:\"\n }), \"\\n\", _jsxs(_components.ol, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Saves every entry from \", _jsx(_components.code, {\n children: \"flight_data\"\n }), \" (or the legacy \", _jsx(_components.code, {\n children: \"flight_log\"\n }), \") as ACARS LOG rows.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Recomputes total \", _jsx(_components.code, {\n children: \"distance\"\n }), \" by summing great-circle segments between the FLIGHT_PATH rows accumulated during \", _jsx(_components.code, {\n children: \"/flights/update\"\n }), \". If no FLIGHT_PATH rows exist, the dpt-to-arr great-circle distance is used.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Files the PIREP with the supplied \", _jsx(_components.code, {\n children: \"landing_rate\"\n }), \", \", _jsx(_components.code, {\n children: \"fuel_used\"\n }), \", \", _jsx(_components.code, {\n children: \"flight_time\"\n }), \", and any of the optional \", _jsx(_components.code, {\n children: \"zfw\"\n }), \" / \", _jsx(_components.code, {\n children: \"block_fuel\"\n }), \" / \", _jsx(_components.code, {\n children: \"block_time\"\n }), \" / \", _jsx(_components.code, {\n children: \"level\"\n }), \" / \", _jsx(_components.code, {\n children: \"route\"\n }), \" fields.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Appends any \", _jsx(_components.code, {\n children: \"comments\"\n }), \" as pilot comments on the PIREP.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Calls phpVMS’s \", _jsx(_components.code, {\n children: \"submit()\"\n }), \" which fires the \", _jsx(_components.code, {\n children: \"PirepFiled\"\n }), \" event, handles diversions, and applies rank-based auto-approval.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"flight_time\"\n }), \" is in \", _jsx(_components.strong, {\n children: \"decimal hours\"\n }), \" here (the server multiplies by 60 to store minutes). Either \", _jsx(_components.code, {\n children: \"uuid\"\n }), \" or \", _jsx(_components.code, {\n children: \"tracking_id\"\n }), \" may carry the PIREP ID.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"File the PIREP","description":"Closes out the flight. The server:\n\n1. Saves every entry from `flight_data` (or the legacy `flight_log`) as ACARS LOG rows.\n2. 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.\n3. 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.\n4. Appends any `comments` as pilot comments on the PIREP.\n5. Calls phpVMS's `submit()` which fires the `PirepFiled` event, handles diversions, and applies rank-based auto-approval.\n\n`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.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/complete","href":"/api-reference/flights/file-the-pirep","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Flights"],"operationId":"completeFlight","summary":"File the PIREP","description":"Closes out the flight. The server:\n\n1. Saves every entry from `flight_data` (or the legacy `flight_log`) as ACARS LOG rows.\n2. 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.\n3. 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.\n4. Appends any `comments` as pilot comments on the PIREP.\n5. Calls phpVMS's `submit()` which fires the `PirepFiled` event, handles diversions, and applies rank-based auto-approval.\n\n`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.","requestBody":"a43c1cef-1752-49c4-a2bd-d621d0ece66c","responses":{"200":"43a94b63-b015-499d-bf2c-b440ebfebd16","400":"24d74252-49c9-4ce2-b891-0ceacca2ee6d","401":"a353fef5-958a-4dfd-867e-d611848b594c","404":"fb07e39b-720b-41de-afb2-c5d55c5c31bb","500":"4b53ebea-9766-4f38-8cba-546c52f19606"},"method":"post","type":"path","servers":["dd18668e-b20d-4224-b6c1-af4bd1703d46"],"security":["d2c7c4ba-6478-4ae7-a52d-b248e01ffc8a"],"path":"/flights/complete","baseUrlOptions":["{baseUrl}"],"title":"File the PIREP","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","description":"PIREP ID. Either this or `tracking_id` is required.","uniqueKey":"uuid","typeLabel":"string\u003cuuid>"},"tracking_id":{"type":"string","format":"uuid","uniqueKey":"tracking_id","typeLabel":"string\u003cuuid>"},"flight_data":{"type":"array","items":{"type":"object","description":"Free-form log line saved verbatim as an ACARS LOG row. The reference implementation does not parse `event`, so clients are free to include whatever structure they want.","properties":{"event":{"type":"string","description":"Log message body.","uniqueKey":"flight_data.items.[INDEX].event","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp. Defaults to receive-time if omitted.","uniqueKey":"flight_data.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"flight_data.items.[INDEX]","typeLabel":"object"},"description":"Log entries saved as ACARS LOG rows.","uniqueKey":"flight_data","typeLabel":"object[]"},"flight_log":{"type":"array","items":{"type":"object","description":"Free-form log line saved verbatim as an ACARS LOG row. The reference implementation does not parse `event`, so clients are free to include whatever structure they want.","properties":{"event":{"type":"string","description":"Log message body.","uniqueKey":"flight_log.items.[INDEX].event","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp. Defaults to receive-time if omitted.","uniqueKey":"flight_log.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"flight_log.items.[INDEX]","typeLabel":"object"},"description":"Legacy field name, used only when `flight_data` is empty.","uniqueKey":"flight_log","typeLabel":"object[]"},"additional_fields":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"additional_fields.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"additional_fields.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"additional_fields.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"additional_fields.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"additional_fields.additionalProperties","typeLabel":"string | number | boolean | null"},"description":"Custom PIREP fields keyed by slug, written to `pirep_field_values` (source ACARS). Sent only when **Where PIREP fields go** (on Flight Tracking's **Additional fields** tab in Console) is set to **Nested**: it carries every additional field ticked under **PIREP** plus `simulator_version`. With **Top level** the same fields arrive as flat top-level keys instead, which this endpoint ignores.","uniqueKey":"additional_fields","typeLabel":"object"},"landing_rate":{"type":"number","format":"float","description":"Touchdown rate (feet per minute, negative).","uniqueKey":"landing_rate","typeLabel":"number\u003cfloat>"},"fuel_used":{"type":"number","format":"float","description":"Total fuel burn, pounds.","uniqueKey":"fuel_used","typeLabel":"number\u003cfloat>"},"flight_time":{"type":"number","format":"float","description":"Total flight time in decimal hours. Server stores as minutes.","uniqueKey":"flight_time","typeLabel":"number\u003cfloat>"},"zfw":{"type":"number","format":"float","description":"Zero-fuel weight in lbs.","uniqueKey":"zfw","typeLabel":"number\u003cfloat>"},"block_fuel":{"type":"number","format":"float","description":"Block fuel in lbs.","uniqueKey":"block_fuel","typeLabel":"number\u003cfloat>"},"block_time":{"type":"number","format":"float","description":"Block time in decimal hours.","uniqueKey":"block_time","typeLabel":"number\u003cfloat>"},"level":{"type":"number","format":"float","description":"Cruise flight level (e.g. 360).","uniqueKey":"level","typeLabel":"number\u003cfloat>"},"route":{"oneOf":[{"type":"string","description":"Route. If sent as an array, the server joins on spaces. Omit to preserve the route prefiled at `/flights/start`.","uniqueKey":"route.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"route.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"Route. If sent as an array, the server joins on spaces. Omit to preserve the route prefiled at `/flights/start`.","uniqueKey":"route.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"route","typeLabel":"string | string[]"},"comments":{"type":"array","items":{"oneOf":[{"type":"string","description":"Pilot comment to attach to the PIREP. The server picks the first non-empty value from `event`, `text`, `comment` (in that order) if an object is supplied.","uniqueKey":"comments.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"Pilot comment to attach to the PIREP. The server picks the first non-empty value from `event`, `text`, `comment` (in that order) if an object is supplied.","properties":{"event":{"type":"string","uniqueKey":"comments.items.[INDEX].oneOf.1.event","typeLabel":"string"},"text":{"type":"string","uniqueKey":"comments.items.[INDEX].oneOf.1.text","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"comments.items.[INDEX].oneOf.1.comment","typeLabel":"string"}},"uniqueKey":"comments.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"comments.items.[INDEX]","typeLabel":"string | object"},"description":"Pilot comments to attach to the filed PIREP.","uniqueKey":"comments","typeLabel":"(string | object)[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"uuid":"3c90c3cc-0d44-4b50-8888-8dd25736052a","tracking_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","flight_data":[{"event":"\u003cstring>","timestamp":"2023-11-07T05:31:56Z"}],"flight_log":[{"event":"\u003cstring>","timestamp":"2023-11-07T05:31:56Z"}],"additional_fields":{},"landing_rate":123,"fuel_used":123,"flight_time":123,"zfw":123,"block_fuel":123,"block_time":123,"level":123,"route":"\u003cstring>","comments":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"43a94b63-b015-499d-bf2c-b440ebfebd16":{"description":"PIREP filed and submitted.","content":{"application/json":{"schema":{"type":"object","required":["pirep_id","flight_number","route","aircraft","aircraft_icao","registration","airline","airline_icao"],"properties":{"pirep_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"pirep_id","typeLabel":"string\u003cuuid>"},"flight_number":{"type":"string","description":"Airline code + flight number (e.g. `QFA1`).","example":"QFA1","isRequired":true,"uniqueKey":"flight_number","typeLabel":"string"},"route":{"type":"string","description":"`\u003cdpt-icao> - \u003carr-icao>` summary.","example":"YSSY - YMML","isRequired":true,"uniqueKey":"route","typeLabel":"string"},"aircraft":{"type":"string","description":"Aircraft name (falls back to registration if unnamed).","isRequired":true,"uniqueKey":"aircraft","typeLabel":"string"},"aircraft_icao":{"type":"string","isRequired":true,"uniqueKey":"aircraft_icao","typeLabel":"string"},"registration":{"type":"string","isRequired":true,"uniqueKey":"registration","typeLabel":"string"},"airline":{"type":"string","isRequired":true,"uniqueKey":"airline","typeLabel":"string"},"airline_icao":{"type":"string","isRequired":true,"uniqueKey":"airline_icao","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"pirep_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","flight_number":"QFA1","route":"YSSY - YMML","aircraft":"\u003cstring>","aircraft_icao":"\u003cstring>","registration":"\u003cstring>","airline":"\u003cstring>","airline_icao":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"24d74252-49c9-4ce2-b891-0ceacca2ee6d":{"description":"Required `uuid` / `tracking_id` was not supplied.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"tracking_id is required"},"examples":{"Example":{"title":"Example","value":{"error":"tracking_id is required"}}},"exampleType":"examples"}},"exampleType":"examples"},"a353fef5-958a-4dfd-867e-d611848b594c":{"description":"Missing or invalid Bearer token.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":"Invalid Token"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Invalid Token"}}},"exampleType":"examples"}},"exampleType":"examples"},"fb07e39b-720b-41de-afb2-c5d55c5c31bb":{"description":"No PIREP exists for the supplied tracking ID.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"PIREP not found"},"examples":{"Example":{"title":"Example","value":{"error":"PIREP not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"4b53ebea-9766-4f38-8cba-546c52f19606":{"description":"Unhandled server error. The `error` field carries the message; check server logs for the trace.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","success":true,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d2c7c4ba-6478-4ae7-a52d-b248e01ffc8a":{"BearerAuth":{"type":"http","scheme":"bearer","description":"The pilot's API key, obtained via `POST /pilot/login` or your OAuth flow. Send as `Authorization: Bearer \u003capi_key>` on every authenticated request.","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"dd18668e-b20d-4224-b6c1-af4bd1703d46":{"url":"{baseUrl}","description":"Your VA's Stratos API base. Set this to whatever URL the Stratos client is pointed at, including any path prefix you chose to mount the surface under.","variables":{"baseUrl":{"default":"https://crew.example.com/api/stratos","description":"Full base URL including the path prefix (no trailing slash). The phpVMS reference module mounts under `/api/stratos`; if you mounted yours somewhere else (e.g. `https://api.yourva.com/stratos/v1`), use that."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"The pilot's API key, obtained via `POST /pilot/login` or your OAuth flow. Send as `Authorization: Bearer \u003capi_key>` on every authenticated request.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"The pilot's API key, obtained via `POST /pilot/login` or your OAuth flow. Send as `Authorization: Bearer \u003capi_key>` on every authenticated request.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"skyvexsoftware","siteName":"Skyvex Software","title":"File the PIREP - Skyvex Software","navMaps":{"firstHrefInVersion":{"Stratos":{"href":"/api-reference/flights/file-the-pirep","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-10-18T05:04:31.160Z","originalFileLocation":"api-reference/flights/file-the-pirep.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Closes out the flight. The server: 1. Saves every entry from flight_data (or the legacy flight_log) as ACARS LOG rows. 2. 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. 3. 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. 4. Appends any comments as pilot comments on the PIREP. 5. Calls phpVMS\u0026#x27;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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Skyvex Software\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"File the PIREP - Skyvex Software\">\u003cmeta data-mint-head property=\"og:description\" content=\"Closes out the flight. The server: 1. Saves every entry from flight_data (or the legacy flight_log) as ACARS LOG rows. 2. 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. 3. 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. 4. Appends any comments as pilot comments on the PIREP. 5. Calls phpVMS\u0026#x27;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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Skyvex Software\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://skyvexsoftware.mintlify.app/_mintlify/api/og/v2?division=Flights\u0026amp;title=File+the+PIREP\u0026amp;description=Closes+out+the+flight.+The+server%3A%0A%0A1.+Saves+every+entry+from+%60flight_data%60+%28or+the+legacy+%60flight_log%60%29+as+ACARS+LOG+rows.%0A2.+Recomputes+total+%60distance%60+by+su\u0026amp;theme=5ac93a8f3cc242debdc3501c\u0026amp;signature=3f67a3b50fe42588642870521cb7d7f9b43fd850f44e59bd0ffaf5e0faabb32d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"File the PIREP - Skyvex Software\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Closes out the flight. The server: 1. Saves every entry from flight_data (or the legacy flight_log) as ACARS LOG rows. 2. 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. 3. 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. 4. Appends any comments as pilot comments on the PIREP. 5. Calls phpVMS\u0026#x27;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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://skyvexsoftware.mintlify.app/_mintlify/api/og/v2?division=Flights\u0026amp;title=File+the+PIREP\u0026amp;description=Closes+out+the+flight.+The+server%3A%0A%0A1.+Saves+every+entry+from+%60flight_data%60+%28or+the+legacy+%60flight_log%60%29+as+ACARS+LOG+rows.%0A2.+Recomputes+total+%60distance%60+by+su\u0026amp;theme=5ac93a8f3cc242debdc3501c\u0026amp;signature=3f67a3b50fe42588642870521cb7d7f9b43fd850f44e59bd0ffaf5e0faabb32d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/skyvexsoftware/WC7Gk2NUvCVAfBEZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Skyvex Software\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1847ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/flights/file-the-pirep.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.skyvexsoftware.com/#organization\",\"name\":\"Skyvex Software\",\"url\":\"https://docs.skyvexsoftware.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/skyvexsoftware/6_XhdPqMDHXpebNZ/logo/light.svg?fit=max\u0026auto=format\u0026n=6_XhdPqMDHXpebNZ\u0026q=85\u0026s=b7646e33ca0db1bb774ae0adfe5f103a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.skyvexsoftware.com#website\",\"name\":\"Skyvex Software\",\"url\":\"https://docs.skyvexsoftware.com\",\"publisher\":{\"@id\":\"https://docs.skyvexsoftware.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep#webpage\",\"url\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep\",\"name\":\"File the PIREP\",\"description\":\"Closes out the flight. The server: 1. Saves every entry from flight_data (or the legacy flight_log) as ACARS LOG rows. 2. 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. 3. 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. 4. Appends any comments as pilot comments on the PIREP. 5. 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.\",\"dateModified\":\"2026-10-18T05:04:31.160Z\",\"isPartOf\":{\"@id\":\"https://docs.skyvexsoftware.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.skyvexsoftware.com/api-reference/handshake:-version-and-discovery\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flights\",\"item\":\"https://docs.skyvexsoftware.com/api-reference/flights/pilots-current-bids\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"File the PIREP\",\"item\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep#apireference\",\"headline\":\"File the PIREP\",\"name\":\"File the PIREP\",\"description\":\"Closes out the flight. The server: 1. Saves every entry from flight_data (or the legacy flight_log) as ACARS LOG rows. 2. 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. 3. 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. 4. Appends any comments as pilot comments on the PIREP. 5. 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.\",\"url\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep\",\"mainEntityOfPage\":{\"@id\":\"https://docs.skyvexsoftware.com/api-reference/flights/file-the-pirep#webpage\"},\"dateModified\":\"2026-10-18T05:04:31.160Z\",\"publisher\":{\"@id\":\"https://docs.skyvexsoftware.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.skyvexsoftware.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Skyvex Software\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Skyvex Software","nav":{"global":{"anchors":[{"anchor":"Skyvex Software","icon":"home","href":"https://skyvexsoftware.com"},{"anchor":"Download (v2.26.0)","icon":"download","href":"https://skyvexsoftware.com/download"},{"anchor":"Stratos SDK (v0.27.0)","icon":"npm","href":"https://www.npmjs.com/package/@skyvexsoftware/stratos-sdk"}]},"versions":[{"version":"Stratos","tabs":[{"tab":"Stratos","pages":[{"title":"Stratos","href":"/introduction"}]},{"tab":"Console","pages":[{"title":"Console","href":"/guide/va-onboarding"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Stratos VA API","href":"/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"API Reference","pages":[{"title":"Handshake: version and discovery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /","href":"/api-reference/handshake:-version-and-discovery"}]},{"group":"Pilot","pages":[{"title":"Credentials sign-in","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /pilot/login","href":"/api-reference/pilot/credentials-sign-in"},{"title":"Verify token and return profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /pilot/verify","href":"/api-reference/pilot/verify-token-and-return-profile"},{"title":"Pilot career statistics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /pilot/statistics","href":"/api-reference/pilot/pilot-career-statistics"}]},{"group":"Reference Data","pages":[{"title":"Fleet list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /data/aircraft","href":"/api-reference/reference-data/fleet-list"},{"title":"Airport directory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /data/airports","href":"/api-reference/reference-data/airport-directory"},{"title":"VA announcements feed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /data/announcements","href":"/api-reference/reference-data/va-announcements-feed"}]},{"group":"Flights","pages":[{"title":"Pilot's current bids","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /flights/bookings","href":"/api-reference/flights/pilots-current-bids"},{"title":"Aircraft a pilot may switch to for a bid","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /flights/bookings/{bid}/aircraft","href":"/api-reference/flights/aircraft-a-pilot-may-switch-to-for-a-bid"},{"title":"Change a bid's aircraft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/change-aircraft","href":"/api-reference/flights/change-a-bids-aircraft"},{"title":"Search the schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /flights/search","href":"/api-reference/flights/search-the-schedule"},{"title":"Begin tracking a booked flight","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/start","href":"/api-reference/flights/begin-tracking-a-booked-flight"},{"title":"Position and phase update","description":"Sent 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`.\n\nThe reference phpVMS module reads `phase` case-insensitively and maps it to a PIREP status:\n\n| Stratos phase | phpVMS status |\n|---|---|\n| `BOARDING` | BOARDING |\n| `PUSH_BACK` | PUSHBACK_TOW |\n| `TAXI` / `REJECTED_TAKE_OFF` / `TAXI_TO_GATE` | TAXI |\n| `TAKE_OFF` | TAKEOFF |\n| `CLIMB` / `CRUISE` | ENROUTE |\n| `DESCENT` / `GO_AROUND` | APPROACH |\n| `APPROACH` | APPROACH_ICAO |\n| `FINAL` | LANDING |\n| `LANDED` | LANDED |\n| `DEBOARDING` | ON_BLOCK |\n| `PAUSED` | PAUSED |\n| `UNKNOWN`, or any other value | ENROUTE |\n\nIt 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.\n\nEither `uuid` or `tracking_id` may carry the PIREP ID (the client uses them interchangeably).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/update","href":"/api-reference/flights/position-and-phase-update"},{"title":"File the PIREP","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/complete","href":"/api-reference/flights/file-the-pirep"},{"title":"Cancel an active flight","description":"Cancels the in-progress PIREP and discards its FLIGHT_PATH rows. Send the `uuid` of the PIREP to cancel, or send an empty body to cancel the authenticated pilot's most recent in-progress PIREP.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/cancel","href":"/api-reference/flights/cancel-an-active-flight"},{"title":"Cancel a bid","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /flights/unbook","href":"/api-reference/flights/cancel-a-bid"}]}]}]},{"tab":"Plugin SDK","pages":[{"title":"Plugin SDK","href":"/sdk/overview"}]}]}]},"basePath":"","title":"File the PIREP - Skyvex Software","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}