NEW FlightHub 2 OpenAPI V1.0
  1. Flight Route 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
      • Updated flight task status
      • Obtain flight task list
      • Obtain media resources generated by the Flight task
      • Obtain Flight task trajectory information
      • Obtain Flight task information
    • Flight Route Management
      • Flight Route Management Tutorial
      • Flight Route Upload Completion Notification
        POST
      • Get the list of flight routes under the project
        GET
      • Get flight route details
        GET
    • 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
  1. Flight Route Management

Flight Route Upload Completion Notification

Developing
POST
/openapi/v0.1/wayline/finish-upload
After the notification of the flight route upload is sent to FlightHub 2, the flight route management page of FlightHub 2 will display the uploaded flight route information. At the same time, this interface will return the name and UUID of the uploaded flight route file.

Request

Header Params
X-Request-Id
string <uuid>
required
Request Unique Identifier
X-Language
enum<string> 
optional
Allowed values:
zhen
Default:
zh
X-Project-Uuid
string 
optional
Project Number
Default:
{{X-Project-Uuid}}
Body Params application/json
name
string 
required
Flight route alias, can be defined by yourself
object_key
string 
required
The unique identifier for the flight route storage object.
Example
{
  "name": "wayline_01",
  "object_key": "8d72d542-f966-447d-85c6-c440263ca612/f10e3a91-4b82-4fd4-9b90-3919292d9256/b4f93cdc-df4a-4a8b-8be3-557c52583f78/wayline.kmz"
}

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 '/openapi/v0.1/wayline/finish-upload' \
--header 'X-Request-Id;' \
--header 'X-Language: zh' \
--header 'X-Project-Uuid: {{X-Project-Uuid}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "wayline_01",
    "object_key": "8d72d542-f966-447d-85c6-c440263ca612/f10e3a91-4b82-4fd4-9b90-3919292d9256/b4f93cdc-df4a-4a8b-8be3-557c52583f78/wayline.kmz"
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
Non-zero indicates an exception
message
string 
required
Message prompt
data
object 
required
name
string 
required
Flight Route Alias
uuid
string 
required
Flight Route ID
Example
{
  "code": 0,
  "message": "string",
  "data": {
    "name": "string",
    "uuid": "string"
  }
}
Previous
Flight Route Management Tutorial
Next
Get the list of flight routes under the project
Built with