FlightHub Sync
  1. Task distribution
FlightHub Sync
  • FlightHub
    • FlightFub Webhook
    • ENV
    • Error Code
    • Live stream forwarding
      • Start Stream Forwarding
      • Stop Stream Forwarding
      • Get Stream Forwarding Channel Transcoder
    • Task distribution
      • Get Flight Task Files List
        GET
      • Create Flight Task
        POST
      • Commands During the Flight Task
        POST
      • Flight Task Trajectory Acquisition
        GET
      • Project Equipment Topology
        GET
      • Get Flight Task Details
        GET
    • Get Organization Project List
      GET
    • Get Project Device List
      GET
    • Push Event Notification and Map Annotation
      POST
    • Get Temporary Upload Token
      POST
    • Notify of Route File Upload
      POST
    • Get File Information and Download Address
      GET
  1. Task distribution

Commands During the Flight Task

POST
/manage/api/v1.0/projects/{project_uuid}/flight-commands

Request

Path Params
project_uuid
string 
required
Header Params
X-Organization-Key
string 
required
Organization-Key
Example:
{{organization_key}}
Body Params application/json
device_cmd_data
object 
optional
This parameter needs to be specified only when the parameter "device_cmd_method" is "return_specific_home"
home_dock_sn
string 
optional
Return destination dock SN
device_cmd_method
enum<string> 
required
Command method name
Allowed values:
return_homereturn_specific_homereturn_home_cancelflighttask_pauseflighttask_recovery
device_sn
string 
required
The dock SN that receives the command. In the frog jump task, this SN needs to be obtained from the "best_link_gateway" field reported by the device object model.
Example
{
  "device_cmd_method": "return_home_cancel",
  "device_sn": "DOCKSN"
}

Request 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 '/manage/api/v1.0/projects//flight-commands' \
--header 'X-Organization-Key: {{organization_key}}' \
--header 'X-Organization-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "device_cmd_method": "return_home_cancel",
    "device_sn": "DOCKSN"
}'

Responses

🟢200OK
application/json
Body
body
object 
required
code
integer 
required
message
string 
required
data
null 
required
headers
object 
required
size
integer 
required
status
integer 
required
Example
{
  "body": {
    "code": 0,
    "message": "OK",
    "data": null
  },
  "headers": {},
  "size": 37,
  "status": 200
}
🟢200OK
Previous
Create Flight Task
Next
Flight Task Trajectory Acquisition
Built with