1. Flight Task
FlightHub 2 OpenAPI V2.0 (On-Premises)
  • Call_Guide
    • Authentication Tutorial
    • Response Result
    • Request Structure
    • Error Codes
    • Public Parameters
  • Common
    • Common Foundation Tutorial
    • System Health & Access
      • DRC Service Health Check
    • Access and Authorization
      • STS Credentials
        • Get Business-Module Customized STS Credentials
        • Get Project-Level File Direct Upload STS Credentials
        • Get Flight Record Upload STS Credentials
    • Security
      • Decrypt Device Serial Number (SN) in Flight Record
  • Organization & Project
    • Organization and Project Tutorial
    • Project Management
      • Project Configuration
        • Get Project Auto Recording Configuration
        • Configure Project Auto Recording Rules
      • Project Basic Info
        • Create Project
        • Update Project Info
        • Get Project Details
        • Delete Project
      • Quick Join
        • Query Quick Join Project Info
        • Join Project via Quick Join Code
    • Organization Management
      • Query Organization Project List
      • Update Current User's Subscription Settings
      • Get Organization Details
      • Update Organization Info
    • Members & Permissions Management
      • Roles & Permissions
        • Get Project Permission Tree Definition
        • Query Project Role List Within Organization
        • Batch Create Project-Level Custom Roles
        • Query Role-Permission Mapping (Role ID → Permission List)
        • Delete Organization Custom Role
        • Update Custom Role
      • Organization Members
        • Batch Remove Organization Members
        • Query Organization Member List
        • Batch Add Organization Members
        • Batch Update Organization Member Info
        • Query Current User's Identity and Configuration in Organization
        • Update Current User's Organization Call Sign
        • Current User Exits Organization
      • Project Members
        • Get Project Team Members (Online)
        • Get Project User List
        • Update Current User's Project Call Sign
  • Device Management
    • Device Management Tutorial
    • Device Configuration
      • Device Shadow
        • Update Organization Device Shadow Configuration
        • Update Project Device Shadow Configuration
        • Query Organization Device Thing Model Attribute Current Values
      • Generic Configuration Command
        • Dispatch Custom Command to Organization Device (Generic cmds Channel)
        • Query Organization Device Command Execution Progress
        • Batch Query Organization Device Command Execution Progress
        • Dispatch Command to Devices in Project
      • HMS Event
        • Get Organization Device HMS Event List
        • Update Organization Device HMS Read Time
        • Update Project Device HMS Read Time
        • Batch Get Project Device HMS Events
      • Network Management
        • Query Device Current NTP Server Configuration
        • Start Device Network Speed Detection Task
        • Query Device Network Speed Test Task Result
        • Query Bay Network Configuration
        • Detect Bay Network Connection
        • Query 4G Module APN Configuration
      • RTK Configuration
        • Query Device's RTK Network Account Info
        • Custom Network RTK Calibration
      • Pairing Management
        • Query Device Pairing Info
        • Dispatch Device Pairing Command
        • Query Relay Scan Result
        • Query Relay Non-Paired Connection Result
        • Query Pairing Request Result
      • SIM Card Management
        • Query Device SIM Card Subscription and Data Info
      • Project Device Configuration
        • Modify Project Device Configuration Parameters
        • Get Project Device Configuration
    • Device List Management
      • Project Device List
        • Modify Organization Device's Current Workspace Project
        • Get Project Device List
        • Get Single Device Details Within Project
        • Modify Device Project Call Sign in Project
        • Get Project Historical Topology Device List
        • Get Project Device Thing Model
      • Organization Device List
        • Query Organization Device Simplified List
        • Batch Modify Organization Device Call Sign
        • Modify Single Organization Device Call Sign
        • Batch Remove Organization Devices
        • Query Organization Device O&M List
        • Query Model Primary Key List for a Device Category in Organization
        • Query Organization Device Online Working Quota
  • Real-time Control
    • Real-Time Control Tutorial
    • Flight Control Commands
      • Real-time Command
        • Query Project Device Command Execution Progress
        • Dispatch Flight Control Command
      • Airborne Task
        • Create Airborne-Dispatched Wayline Task
        • Control Wayline Task (Pause / Resume / Cancel)
      • Point-to-Fly
        • Get Flight Task Device Recommendation Result
        • Fly to Target Point (One-Click Takeoff)
        • Initiate Fly-to-Multiple-Targets Task
        • Update In-Progress Fly-to-Target Task
        • End Fly-to-Target Task
      • Smart Orbit
        • Enter POI Orbit Mode
        • Exit POI Orbit Mode
        • Update POI Orbit Speed
        • Query POI Task Status
      • Relay Task
        • Create Relay Task (Dual-Aircraft Rotation)
        • Calculate Best Relay Position for Relay Task
        • Edit Relay Task Configuration
        • Trigger Relay Aircraft Active Takeoff
        • Update Relay Task Running Status (Pause / Resume / Cancel)
        • Actively Switch Relay Task Executing Aircraft
    • Control Permission Management
      • Device Control Permission
        • Device Control Authority Operation (Organization Device O&M)
        • Query Device Control Authority Status (Organization Device O&M)
        • Acquire (Occupy) Cloud Control Role
        • Query Project Device Control Authority Status
        • Query User List in Project Recently Operating Device
        • Device Control Authority Operation
      • Cloud Control Permission
        • Request Cloud Control Authorization (Initiated to Remote Controller)
        • Batch Query Aircraft Cloud Control Authority Status
        • Acquire (Occupy) Cloud Control Permission
        • Release Cloud Control Permission
    • Payload Control
      • Camera Control
        • Dispatch Payload Control Command
      • PSDK Device
        • Dispatch PSDK Command
      • Speaker
        • Open Aircraft Two-Way Voice Channel
        • Open DRC Real-time Control Channel
        • Query Speaker Resource List
        • Create Speaker Resource
        • Delete Speaker Resource
        • Edit Speaker Resource
        • Get Speaker Audio Upload STS Credentials
    • Takeoff-Landing Coordination
      • Query TCA Real-time Status
  • Flight Task
    • Flight Tasks Tutorial
    • Task Query
      • Get Current Active Wayline Task (DRC Real-time Control)
      • Get Current Active Wayline Task (Task Management)
      • Batch Query Flight Task Details by UUID
      • Query Flight Task Time Conflict List
      • Get Flight Task Details (V2, includes execution details)
      • Query Dock Recent / Current Task
      • Get Task Flight Track (V2)
    • Flight Record
      • Export and Download
        • Flight Record File Download
        • Query Flight Task Export History
        • Export Flight Task Records (Generates Async ZIP Task)
        • Cancel / Delete Export Task
      • Operation Log
        • Query Flight Task Operation Log (V2)
    • Task Management
      • Create Flight Task
      • Create Flight Task (Advanced Version, Returns Subtasks)
      • Check Whether Flight Task Meets Dispatch Conditions
      • Mark Task as Read
      • Check Flight Task Block Items
      • Resumable Immediate Task
      • Delete Flight Task
      • Edit Flight Task
      • Get Flight Task Details
      • Dispatch Task Media Priority Upload Command
      • Create Resume Flight Task (Retain Original Breakpoint)
      • Update Flight Task Suspend Status (Suspend / Resume / Cancel)
      • Query Flight Task List
    • AI Flight Alert
      • Query Flight Sortie List with AI Alerts by Device SN
      • Query Historical AI Alert Records
  • Wayline
    • Waylines Tutorial
    • Download and Upload
      • Pack Resources to KMZ (Precise Recapture Flow)
      • Query Wayline Async Import Status
      • Wayline Save KMZ Upload Completion Callback
      • Wayline KMZ File Import Callback
      • Batch Download Waylines / Folders (ZIP Package)
    • Wayline List Management
      • Get Wayline KMZ Download URL and 302 Redirect
      • Copy Wayline
      • Favorite Wayline / Media Resource
      • Unfavorite Wayline / Media Resource
      • Stitch Multiple Waylines into One
      • Wayline Library File List Query (V1)
      • Delete Specified Wayline (default soft delete to recycle bin)
      • Update Wayline Metadata (Rename / Lock / Restore from Recycle Bin)
      • Get Single Wayline Details
    • Wayline File CRUD
      • Create Wayline Folder
      • Batch Delete Waylines / Folders
      • Batch Move Waylines / Folders to Target Folder
      • Move Wayline / Folder to Specified Group
      • Batch Update Wayline / Folder Lock Status
  • Map
    • Map Tutorial
    • Map Annotation
      • Annotation Layer Management
        • Move / Reorder Layers and Features
        • Delete Single Annotation Layer (Folder)
        • Update Annotation Layer (Rename / Reorder)
        • Distribute Annotation Layer to Device
        • Lock / Unlock Annotation Layer
        • Cancel Annotation Layer Distribution
        • Batch Delete Annotation Layers / Features
        • Create Annotation Layer (Folder)
        • Query Annotation Layer (Folder) List
      • Annotation Feature Management
        • Batch Modify Display Status of Features Under Layer
        • Clear All Annotation Features Under Specified Layer
        • Create Annotation Feature Under Specified Layer
        • Batch Import Layers and Annotations (KML-Style JSON)
        • Export Features Under Layer Group (KML-Style JSON)
        • Delete Single Annotation Feature
        • Update Annotation Feature (Rename / Modify Coordinates / Modify Style / Reorder)
      • Custom Icon
        • Query Project Custom Point Icon Library
        • Register Custom Point Icon
        • Delete Custom Point Icon
    • Signal Heatmap
      • Query Organization-Level Signal Heatmap
      • Query Project-Level Signal Heatmap
    • Airspace Safety
      • Custom Flight Area
        • Query Flight Area List Under Project
        • Create Flight Area
        • Trigger Flight Area Configuration Sync to Device
        • Delete Flight Area
        • Update Flight Area
    • Offline Map
      • Get Offline Map Terrain Model Download URL
      • Trigger Offline Map Package Sync to Bay
      • Get Project Offline Map Details
      • Configure Project Offline Map Manifest (Start New Update)
      • Cancel Offline Map Model Update
  • Livestream
    • Live Streaming Tutorial
    • Livestream Sharing & Forwarding
      • Bypass Streaming
        • Query Current Organization Bypass Transcoder List
        • Create / Enable / Disable / Update Stream Forwarder
        • Stop and Delete Specified Bypass Transcoder (C2C Livestream Bypass)
      • Livestream Sharing
        • Get Device Livestream Share Details
        • Query All Livestream Share Links Under Project
    • Livestream Push
      • Project Level
        • Start Livestream (Project Level)
        • Update Viewer Tokens (Project Level)
        • Switch Camera (Project Level)
        • Switch Livestream Camera (Project Level)
        • Report Viewer Join Livestream Room Status (Project Level)
        • Stop Livestream (Project Level)
        • Set Livestream Quality (Project Level, aircraft source-side push level)
        • Query Device Livestream and Recording Status (Project Level)
      • Organization Level
        • Stop Livestream (Organization Level)
        • Set Livestream Quality (Organization Level, aircraft source-side push level)
        • Report Viewer Join Livestream Room Status (Organization Level)
        • Start Livestream (Organization Level)
        • Switch Camera (Organization Level, also controls aircraft source-side hardware)
        • Update Viewer Tokens (Organization Level)
        • Switch Livestream Camera (Organization Level)
    • Recording Task Management
      • Start Cloud Recording (Project Level)
      • Stop Cloud Recording (Project Level)
      • Query Device Recording Task List (Project Level)
      • Start Intra-Project Livestream
      • Query Device Recording Task List (Organization Level)
      • Start Cloud Recording (Organization Level)
      • Stop Cloud Recording (Organization Level)
      • Stop Intra-Project Livestream Recording
  • Media
    • Media Tutorial
    • Flight Task Association
      • Query Flight Task Media by flight_id
      • Batch Query Flight Media by flight_ids
    • File Statistics and Query
      • Get Media File Count (by Folder Granularity)
      • Get Total Media File Count (Project-Wide)
      • Get Media Resource Files (Images + Folders)
    • Media File CRUD
      • Batch Set Media Map Display Status
      • Batch Delete Media Files - to Recycle Bin
      • Create Media Folder
      • Get Media File List
      • Media File Cropping
      • Batch Move Media Files
      • Delete Single Media File
      • Get Media File Details
      • Update Media File Info
      • Batch Hard Delete Media Files - Not to Recycle Bin
    • Download and Upload
      • Quick Upload Media File
      • Import Media File
      • Check New File Fingerprint Existence Status
      • Annotation Callback
      • Media Upload Completion Callback
      • Check ZIP Package Task Status
      • Package Media Files into ZIP
      • Get Media File Download URL
    • Tag Management
      • Add Tag to Media File
      • Delete Media File Tag
      • Get Media File Tag List Under Project
  • Model
    • Models Tutorial
    • Model Reconstruction
      • Geographic Systems
      • Get Flight Task Folder List V2
      • Get Real-time Mapping Task List
      • Initiate Real-time Mapping Task (Realtime2D)
      • Get Project Model Library Default Settings
      • Initiate Post-Processing Reconstruction Task (Post 2D / 3D)
      • Get Post-Reconstruction Default ROI
      • Get Post-Reconstruction Quality Report Download Link
      • Post-Reconstruction Task Retry
      • Stop Post-Reconstruction Task
      • Model Upload Completion Callback (called by client, not OSS signature verification)
      • Query Wayline List Available for Model Reconstruction
    • Model Library
      • Model File Management
        • Batch Delete Model Files
        • Get Project Model File List
        • Create Model Folder
        • Batch Toggle Model Map Display Status
        • Lock / Unlock Model File
        • Batch Move Model Files
        • Intra-Org Model Sharing
        • Get Total Model File Count
        • Delete Single Model File
        • Get Model File Details
        • Update Model Basic Info
        • Get Model File Download URL
        • Initiate Model Format / Coordinate System Conversion Task
        • Get Available Coordinate System (WKT) List for Project
      • Map Display
        • Batch Set Terrain Loading Status of Real-time Mapping Models
        • Adjust Display Order of Real-time Mapping Models (Drag-and-Drop Sort)
        • Update Mapping Task Metadata (Rename / Show-Hide / Distribute / Undistribute / Toggle Terrain)
        • Get Map Page Model Layer List
        • Batch Toggle Map Model Layer Attributes
        • Adjust Map Model Layer Stacking Order
  • Recycle Bin
    • Recycle Bin Tutorial
    • Hard Delete Single Media File
    • Restore File from Recycle Bin
    • Permanently Delete Recycle Bin Files
    • Get Media Recycle Bin File List
    • Modify Media Recycle Bin Configuration
    • Get Media Recycle Bin Configuration
    • Get Model Library Recycle Bin Disk Statistics
    • Get Media Recycle Bin Disk Statistics
  • Advanced Capabilities
    • Advanced Capabilities Tutorial
    • Change Detection
      • Media Change Detection
        • Initiate Media Spot-the-Difference Task
        • Query Media Spot-the-Difference Task List
        • Delete Spot-the-Difference Task
        • Modify Spot-the-Difference Task Name and Other Attributes
        • Get Spot-the-Difference Task Details
        • Evaluate Spot-the-Difference Task
        • Batch Modify Spot-the-Difference Result Status
        • Delete Change Area
        • Add Change Area (Manual Annotation)
        • Update Change Area Attributes
        • Get Media Upload STS Credentials
        • Media Spot-the-Difference Task Pre-check
        • View Spot-the-Difference Detection Report
        • Get Photo Group AI Spot-the-Difference Result List
        • Get Change Area Details in Result Group
      • Model Change Detection
        • Initiate Model Comparison Task (Spot-the-Difference)
        • Query Model Comparison Task List
        • Modify Model Comparison Task Name and Other Attributes
        • Get Model Comparison Task Result Details
        • Delete Model Comparison Task
        • Batch Update Model Comparison Diff
        • Delete Model Comparison Diff
        • Add Model Comparison Diff (Manual Annotation)
        • Update Single Model Comparison Diff Details
        • Get Model Comparison Detection Report
        • Query Candidate Models Suitable for Model Comparison
        • Evaluate Model Comparison Task
  • Open Modeling
    • Reconstruction Algorithm Description
    • Error_Codes.md
    • Feature Introduction
    • Update Date: 2026-05-07
    • Get In-Progress Reconstruction Model Details
    • Get Resource Details
    • Delete Resource
    • Get Upload Credentials
    • Start Reconstruction Task
    • Upload Callback
    • Stop Reconstruction Task
    • Get Model Details
    • Delete Model
  • Schemas
    • Default Directory
      • StsCredentials
      • PutWorkspacesWaylinesBatchDeleteResp
      • PutWorkspacesWaylinesLockStatusResp
      • C0160_GetFlightTaskAdvanced_Resp
      • C0617_GetFlightTasks_Resp
      • StsResult
      • C0619_CreateBatchDownload_Resp
      • GetWorkspacesFilesCompareFilesResp
      • ProjectTeamGetDevicesRsp
      • PostWorkspacesStsResp
      • Resp
      • ApiEnvelope
      • ServiceError
      • PagyInfo
      • GetDiffMediaTaskIdGetReportResp
      • GetWorkspacesByWorkspaceIdComparatorsByTaskUuidResultGroupsResp
      • GetWorkspacesByWorkspaceIdComparatorsByTaskUuidResultGroupsByResultUuidResp
      • PostWorkspacesComparatorsResultGroupsDiffDetailResp
      • DeleteWorkspacesComparatorsResultGroupsDiffDetailResp
      • GetDiffModelTaskIdGetResultResp
      • PostWorkspacesComparatorsDiffDetailResp
      • DeleteWorkspacesComparatorsDiffDetailResp
      • GetDiffModelTaskIdGetReportResp
      • GetWorkspacesComparatorsMatchImageResp
      • ApiPagedEnvelope
      • InitPermissionTreeNode
      • PutWorkspacesWaylineMoveResp
      • DeleteWorkspacesWaylinesByIdResp
      • PostWorkspacesWaylinesConcatResp
      • C0148_ExportRecords_Resp
      • C0362_GetWaylineImportState_Resp
      • ProjectTeamGetDevicesRspItem
      • ProjectTeamGetDevicesRspItemBaseTopo
      • DeviceModelEnum
      • Position
      • DeviceState_ea210dock
      • DeviceState_ea220dock
      • DeviceState_ea230dock
      • DeviceState_ea210drone
      • DeviceState_ea220drone
      • DeviceState_ea230drone
      • DeviceState_wm265
      • DeviceState_wa345
      • DeviceState_drone_other
      • DeviceState_rc_other
      • DeviceState_rc510
      • DeviceState_rc701
  1. Flight Task

Flight Tasks Tutorial

Feature Introduction#

The Flight Tasks module covers the full chain of "Plan Dispatch → Status Query → Flight Record Management" in FlightHub 2 On-Premises version, divided by responsibility:
Task Management: Flight task CRUD (create / query / edit / delete), pre-takeoff check, suspend / unsuspend / cancel, media priority upload, breakpoint resume flight.
Task Query: Task list, batch query details by UUID, V2 details (with execution details), current active tasks, recent tasks of the dock, task time conflict list, flight trajectory.
AI Flight Alerts: Query flight sorties with AI alerts by device SN, query historical AI alert records.
Flight Record → Export and Download: Export task (asynchronously generate zip), download single flight record file.
Flight Record → Operation Log: Task operation audit log query.
task_type values: 1-Immediate Task / 2-Repeat Task / 3-Single Scheduled Task / 5-Continuous Task. This is the most critical semantic control field of POST /flight-tasks.
Recommended three-step pre-check: ① Topology reachability → device recommendation (see Real-time Control Tutorial → Fly-to Point for details); ② GET /flight-tasks/check verifies device + wayline match; ③ POST /flight-tasks/reject-takeoff checks flight blocking items (immediate tasks only).
Suspend vs Cancel vs Terminate: Suspend (PUT /{task_uuid}/status) only pauses scheduling but retains the task; cancellation enters a terminal state; the "pause / continue / terminate" of executing tasks goes through PUT /drc/api/v2/projects/{uuid}/flight-wayline-tasks/commands (Real-time Control module).
Export is an asynchronous task: POST /flight-tasks/export returns task_id; the client polls GET /flight-tasks/export to see progress, and after completion uses GET /flight-tasks/oss-url-info to exchange for a signed URL to download the zip.

Interface Usage Flow#

Task Creation (with Pre-takeoff Check)#

Call steps:
1.
Pre-takeoff check (immediate tasks only): Call Check Flight Task Flight Blocking Items (POST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/reject-takeoff). This interface only accepts task_type=1; other values will be rejected by the server with HTTP 400 + code = 200101 (message: "param is invalid"). Returns the weather blocking results of the current / landing dock and the GPS wayline blocking results in mobile deployment mode, avoiding being stuck by the business layer after user submission.
2.
Device capability check: Check If Flight Task Meets Dispatch Conditions (GET /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/check) — Query parameters are sn (device SN, note that in spec it is sn not device_sn) + wayline_uuid, verifies whether the combination can be successfully dispatched, returns warning list but does not block creation.
3.
Time conflict check (repeat / scheduled tasks): Query Flight Task Time Conflict List (POST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/conflicts) — Request body required fields: task_type, time_zone, sn, etc. (consistent with the time rules when creating the task), reverse-queries the list of existing tasks under the same device SN that would conflict in time.
4.
Create task:
Basic version: Create Flight Task (POST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks).
Recommended advanced version: Create Flight Task (Advanced, Returns Sub-tasks) (POST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/advanced) — Same business rules, but the response carries sub-task information (repeat / continuous tasks will split into multiple sub-tasks), making it convenient to obtain the complete parent-child structure at once.

Task Query#

Call steps:
1.
List: Query Flight Task List (V2, supports multi-dimensional filter) (GET /openapi/v2.0/task/api/v2/workspaces/{proj_uuid}/flight-tasks) — Supports filtering by task name, device SN, time period, task type, status, etc., paginated in reverse chronological order.
2.
Single task details:
V1 details: Get Flight Task Details (GET /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/{task_uuid}) — Includes rules, devices, waylines, status, sub-tasks, VLM configuration, breakpoint info, etc.
V2 details (recommended): Get Flight Task Detailed Info (V2, with execution details) (GET /openapi/v2.0/task/api/v2/workspaces/{workspace_id}/flight-tasks/detail) — More than V1: execution trajectory details / flight sortie list / media collection summary.
3.
Batch: Batch Query Flight Task Details by UUID (GET /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/batch) — Suitable for front-end task dashboard batch status refresh, cross-system status synchronization.
4.
Recent tasks of dock: Query Recent / Current Task of Dock (GET /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/recent) — Returns executing + paused tasks first, then the latest failed / terminated one; cache hits return directly.
5.
Current active task:
Task management view: Get Current Active Wayline Task (Task Management) (GET /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/in-flight).
DRC real-time control view: Get Current Active Wayline Task (DRC Real-time Control) (GET /openapi/v2.0/drc/api/v2/projects/{prj_id}/flight-tasks/in-flight). Both interfaces have the same semantics; choose based on the calling context.
6.
Flight trajectory: Get Task Flight Trajectory (V2) (GET /openapi/v2.0/task/api/v2/workspaces/{workspace_id}/flight-tasks/track) — The actual waypoint latitude/longitude + altitude + timestamp sequence of completed tasks, used for trajectory playback.

Task Edit / Delete / Status Control#

PurposeInterface
Edit (only undispatched scheduled / repeat sub / continuous sub)PUT /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/{task_uuid}
Delete (only unexecuted / completed / terminated)DELETE /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/{task_uuid}
Suspend / unsuspend / cancelPUT /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/{task_uuid}/status
Media priority uploadPOST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/{task_uuid}/cmds
Mark as read (clear exception red dot)PUT /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/read-confirm
The pause / continue / terminate of executing tasks goes through "Real-time Control → Flight Control Command → In-flight Task" PUT /drc/api/v2/projects/{uuid}/flight-wayline-tasks/commands. The status interface of this module only controls the "suspend / cancel" semantics; see Real-time Control Tutorial for details.

Breakpoint Resume Flight#

Call steps:
Option A: Immediate Task Supporting Breakpoint Resume Flight (POST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/resume-immediate), request body { "task_uuid": "<original task UUID>" }. Copies key fields such as name / wayline / RTH / resume mode / breakpoint JSON / wayline duration based on the original task, forcing task_type=Immediate, is_break_point_resume=true.
Option B: Create Resume Flight Task (Preserves Original Breakpoint) (POST /openapi/v2.0/task/api/v1/workspaces/{workspace_id}/flight-tasks/{task_uuid}/resume), the request body also uses { "task_uuid": "<original task UUID>" }. Copies breakpoint info based on the completed task, preserving the original task_type.

AI Flight Alerts#

Call steps:
1.
Filter sorties by device dimension: Query Flight Sortie List with AI Alerts by Device SN (GET /openapi/v2.0/drc/api/v2/projects/{uuid}/ai-alert-flight).
2.
View alert details: Query Historical AI Alert Records (GET /openapi/v2.0/drc/api/v2/projects/{proj_uuid}/ai-alert-record) — flight_id[] is required query (accepts multiple values, corresponding to a set of sortie IDs); can be stacked with filters by time range / device / algorithm.

Flight Record Export and Download#

Call steps:
1.
Create export task: Export Flight Task Records (Asynchronously Generate zip Task) (POST /openapi/v2.0/task/api/v2/workspaces/{workspace_id}/flight-tasks/export). Request body required fields: flight_task_ids (list of UUIDs of tasks to be exported), file_name, file_type, content_type, metrics.
2.
Poll: Query Flight Task Export History (GET /openapi/v2.0/task/api/v2/workspaces/{workspace_id}/flight-tasks/export) — status is an integer enum: 0=in progress / 1=completed / 2=failed / 3=cancelled.
3.
Download: Flight Record File Download (GET /openapi/v2.0/manage/api/v1/workspaces/{uuid}/flight-tasks/oss-url-info) exchange for temporary signed URL by object_key.
4.
Cancel / delete: Cancel / Delete Export Task (PUT /openapi/v2.0/task/api/v2/workspaces/{workspace_id}/flight-tasks/export) — In-progress tasks can be cancelled (when status=0); completed records can be deleted (status=1/2).

Operation Log (Audit)#

Query Flight Task Operation Log (V2) (GET /openapi/v2.0/task/api/v2/workspaces/{workspace_id}/flight-tasks/oper) returns all operation records of the specified task (create / edit / suspend / cancel, etc.), sorted by time, commonly used for audit tracing.

Typical Scenario: Full Chain for Executing Wayline Tasks#

Aligned with the V0.9 On-Premises "Execute Wayline Task API Call Guide", paths have been adapted to V2.0.
Modified at 2026-06-15 14:36:45
Previous
Query TCA Real-time Status
Next
Get Current Active Wayline Task (DRC Real-time Control)
Built with