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

Get Flight Task Details

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

Request

Path Params
project_uuid
string 
required
Project uuid
Example:
{{project_uuid}}
task_uuid
string 
required
Task UUID (When calling the "Create Task" API, if the creation is successful, the system will return the task UUID)
Example:
1dc16944-a82f-47ec-bfde-205781a8f6b1
Header Params
X-Organization-Key
string 
required
Organization-Key
Example:
{{organization_key}}

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 -g --request GET '/task/api/v1.0/projects/{{project_uuid}}/flight-tasks/1dc16944-a82f-47ec-bfde-205781a8f6b1' \
--header 'X-Organization-Key: {{organization_key}}' \
--header 'X-Organization-Key;'

Responses

🟢200OK
application/json
Body
code
integer 
required
Non-zero indicates an exception
message
string 
required
Message prompt
data
object 
required
name
string 
required
Task Name
uuid
string 
required
Task uuid
task_type
enum<integer> 
required
Task type
Allowed values:
1234567
status
enum<integer> 
required
0: To be started 1: Start failed 2: Executing 3: Paused 4: Terminated 5: Success 6: Suspended 7: Timeout 8: Partially executed 9: Preparing
Allowed values:
012345689
sn
string 
required
Dock SN
landing_dock_sn
string 
required
Planned landing dock SN, non-frog jump task are empty
wayline_uuid
string 
required
Wayline uuid
begin_at
string 
required
Task plan execution time
extended_begin_at
null 
required
Fixed to null, can be ignored
continuous_task_periods
null 
required
Fixed to null, can be ignored
end_at
string 
required
Task plan end time
repeat_type
integer 
required
Fixed to 0, can be ignored
Default:
0
interval
integer 
required
Fixed to 0, can be ignored
dow
null 
required
Fixed to null, can be ignored
dom
null 
required
Fixed to null, can be ignored
wom
integer 
required
Fixed to 0, can be ignored
out_of_control_action_in_flight
integer 
required
Out of control action
rth_altitude
integer 
required
Return home altitude
rth_mode
enum<integer> 
required
Return home mode
Allowed values:
01
min_battery_capacity
integer 
required
Takeoff power for breakpoint flight task or continuous flight task
resumable_status
enum<string> 
required
Continued flight status
Allowed values:
automanual
wayline_precision_type
enum<integer> 
required
Wayline accuracy type
Allowed values:
01
tags
array[string]
required
Device Direct Transfer Task Tags
cloud_to_cloud_id
string 
required
After turning on the device media direct transmission function, there will be an ID representing the third-party cloud here, which is of no practical use
exceptions
array [object {9}] 
required
Task abnormality
Example
{
  "code": 0,
  "message": "success",
  "data": {
    "name": "New Plan 1",
    "uuid": "459268e4-82bf-485a-b02d-48c6a99a5abc",
    "task_type": 1,
    "status": 4,
    "sn": "7CTDL000000000",
    "landing_dock_sn": "",
    "wayline_uuid": "65d7e611-d0fd-4b96-8466-e7018bca7af3",
    "begin_at": "2023-12-20T07:41:52.206474Z",
    "extended_begin_at": null,
    "continuous_task_periods": null,
    "end_at": "2023-12-20T07:43:32.206475Z",
    "repeat_type": 0,
    "interval": 0,
    "dow": null,
    "dom": null,
    "wom": 0,
    "out_of_control_action_in_flight": 1,
    "rth_altitude": 90,
    "rth_mode": 1,
    "min_battery_capacity": 0,
    "resumable_status": "manual",
    "wayline_precision_type": 1,
    "tags": [],
    "cloud_to_cloud_id": "220ea3f3-5b3b-4425-8dd2-7e1c91079d16"
  }
}
🟠401Unauthorized
Previous
Project Equipment Topology
Next
Get Organization Project List
Built with