flighttask_execute

DJI Services · wayline · flighttask_execute

Request Params

vendor
string
required
Fixed value dji
device_id
string
required
Target device ID
command_type
string
required
Fixed value flighttask_execute
idempotency_key
string
required
Idempotency key; repeated requests return the same command
timeout_seconds
integer
Timeout in seconds, range 0~300
payload.flight_id
string
required
Flight task ID
payload.multi_dock_task
object
Multi-dock task parameters (optional, for leapfrog missions)

Create Response

command_id
string(uuid)
Platform command acceptance identifier; globally unique UUID
status
string
Acceptance status: ACCEPTED
accepted_at
string(datetime)
Command acceptance time (UTC)

Query Response

command_id
string(uuid)
Platform command acceptance identifier; globally unique UUID
status
string
Execution status: ACCEPTED / DELIVERED / SUCCEEDED / FAILED / TIMED_OUT / UNMATCHED_RESPONSE
vendor
string
Vendor identifier; fixed value dji
device_id
string
Target device ID
command_type
string
Method name
response_code
string
Device-side execution code
response_message
string
Device-side execution message
vendor_response
object
Raw vendor response (passthrough)

DJI Services Reply Mapping

The device returns command results through services_reply. The platform correlates the reply to command_id through tid and updates the command lifecycle. Clients do not consume the MQTT reply channel directly.
Open Platform fieldDJI services_reply source
response_codePrefer data.code; fall back to data.result when code is absent
response_messagedata.message / data.msg / data.description
vendor_responseNormalized DJI reply summary preserving result, code, message, output, and vendor extension fields
data.result = 0 means device-side execution succeeded. Non-zero values mean device-side execution failed, and the platform moves the command to a failed terminal state.
curl -X POST "/api/v1/open/downlink/commands" \
  -H "Content-Type: application/json" \
  -H "X-Api-Id: YOUR_API_ID" \
  -H "X-Api-Timestamp: YOUR_UNIX_SECONDS" \
  -H "X-Api-Nonce: YOUR_NONCE" \
  -H "X-Api-Signature: YOUR_SIGNATURE" \
  -d '{"vendor":"dji","device_id":"drone-001","command_type":"flighttask_execute","payload":{"flight_id":"id-001","multi_dock_task":{"wireless_link_topo":{"secret_code":[0],"center_node":{"sdr_id":0,"sn":"string"},"leaf_nodes":[{"sdr_id":0,"sn":"string","control_source_index":0}]},"dock_infos":[{"dock_type":"string","latitude":0.0,"longitude":0.0,"height":0.0,"heading":0.0,"home_position_is_valid":0,"index":0,"sn":"string","rtcm_info":{"mount_point":"string","port":"string","host":"string","rtcm_device_type":0,"source_type":0},"alternate_land_point":{"longitude":0.0,"latitude":0.0,"height":0.0,"safe_land_height":0.0,"is_configured":0}}]}},"idempotency_key":"req-flighttask_execute-001","timeout_seconds":30}'

curl "/api/v1/open/downlink/commands/b513602e-8996-f8f4-37d5-71961ff20da0"
{
  "command_id": "b513602e-8996-f8f4-37d5-71961ff20da0",
  "status": "ACCEPTED",
  "accepted_at": "2026-04-22T12:00:00Z"
}