1. Task Management
NEW FlightHub 2 OpenAPI V1.0
  • Root Directory
    • authentication
      • Authentication Tutorial
    • System Service
      • Query FlightHub 2 system status
    • Organize Projects
      • Organize Project Tutorial
      • Get the list of projects under the organization
      • Get the list of devices under the organization
      • Obtain the list of devices under the project
      • Obtain storage upload credentials for the project
      • Add personnel to the project
    • Device Management
      • Device Management Tutorial
      • Device Model Retrieval
      • HMS Information Retrieval
      • Real-time control command distribution
      • Dock camera switch
      • Aircraft Lens Switching
      • Control acquisition
      • Release control
      • Video transmission clarity settings
      • Custom Network RTK Calibration
    • Livestream Management
      • Livestream Management Tutorial
      • Livestream Push
        • Start livestream
      • Bypass Streaming
        • Stream forwarding error code
        • Create Stream Forwarder
        • Enable/Disable stream forwarder
        • Get stream transcoder list
        • Delete stream forwarder
    • Task Management
      • Task Management Tutorial
      • Create Flight Task
        POST
      • Updated flight task status
        PUT
      • Obtain flight task list
        GET
      • Obtain media resources generated by the Flight task
        GET
      • Obtain Flight task trajectory information
        GET
      • Obtain Flight task information
        GET
    • Flight Route Management
      • Flight Route Management Tutorial
      • Flight Route Upload Completion Notification
      • Get the list of flight routes under the project
      • Get flight route details
    • Model Management
      • Model Management Tutorial
      • Model reconstruction coordinate system
      • Get the list of models under the project
      • Get Model Details
      • Model reconstruction
    • Annotation Management
      • Annotation Management Tutorial
      • Create map annotation
    • Open modeling
      • Open modeling tutorial
      • Algorithm parameter introduction
      • Model Reconstruction Error Code
      • Get upload credential
      • Upload callback
      • Get resource details
      • Delete resource
      • Start reconstruction task
      • Stop reconstruction task
      • Get the Model Details
      • Delete Models
  1. Task Management

Create Flight Task

Developing
POST
/openapi/v0.1/flight-task
Create a flight route task. You can obtain the flight route UUID uploaded to FlightHub 2 through the flight route upload completion notification interface, and then call this interface to create a flight route task.

Request

Header Params

Body Params application/json

Example
{
    "name": "flight_task_01",
    "sn": "8PHDM8D0010097",
    "time_zone": "Asia/Chongqing",
    "wayline_uuid": "80232917-2f63-4375-8614-0c70c4458aa3",
    "rth_altitude": 110, 
    "rth_mode": "optimal", 
    "wayline_precision_type": "rtk", 
    "out_of_control_action_in_flight": "return_home", 
    "resumable_status": "manual",
    "task_type": "immediate"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.1/flight-task' \
--header 'X-Request-Id;' \
--header 'X-Language: zh' \
--header 'X-Project-Uuid: {{X-Project-Uuid}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "flight_task_01",
    "sn": "8PHDM8D0010097",
    "time_zone": "Asia/Chongqing",
    "wayline_uuid": "80232917-2f63-4375-8614-0c70c4458aa3",
    "rth_altitude": 110, 
    "rth_mode": "optimal", 
    "wayline_precision_type": "rtk", 
    "out_of_control_action_in_flight": "return_home", 
    "resumable_status": "manual",
    "task_type": "immediate"
}'

Responses

🟢200Success
application/json
Body

Examples
{
    "code": 0,
    "message": "success",
    "data": {
        "task_uuid": "1280bab3-3b0d-4517-a53c-3257e48319e5"
    }
}
Previous
Task Management Tutorial
Next
Updated flight task status
Built with