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

Create Flight Task

POST
/task/api/v1.0/projects/{project_uuid}/flight-tasks

Request

Path Params

Header Params

Body Params application/json

Example
{
    "name": "Flight Task 1",
    "sn": "DOCKSN1",
    "landing_dock_sn": "DOCKSN2",
    "time_zone": "Asia/Chongqing",
    "wayline_uuid": "3f6fa0d6-765d-4b7d-92c5-1a2213b8c0f0",
    "rth_altitude": 24,
    "out_of_control_action_in_flight": 2,
    "resumable_status": "auto",
    "task_type": 1
}

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 '/task/api/v1.0/projects//flight-tasks' \
--header 'X-Organization-Key: {{organization_key}}' \
--header 'X-Organization-Key: {{organization_key}}' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Flight Task 1",
    "sn": "DOCKSN1",
    "landing_dock_sn": "DOCKSN2",
    "time_zone": "Asia/Chongqing",
    "wayline_uuid": "3f6fa0d6-765d-4b7d-92c5-1a2213b8c0f0",
    "rth_altitude": 24,
    "out_of_control_action_in_flight": 2,
    "resumable_status": "auto",
    "task_type": 1
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "body": {
        "code": 0,
        "data": {
            "task": {
                "begin_at": 1718705485,
                "uuid": "1280bab3-3b0d-4517-a53c-3257e48319e5",
                "wayline_validity_check_codes": null
            }
        },
        "message": "success"
    },
    "headers": {},
    "size": 152,
    "status": 200
}
🟢200OK
Modified at 2024-11-08 03:18:42
Previous
Get Flight Task Files List
Next
Commands During the Flight Task
Built with