flight_id and takeoff-embedded fly-to subtask fly_to_id.{
"device_sn": "8UUDMAQ00A0152",
"media_folder_name": "patrol-2026-06-05",
"security_takeoff_height": 50,
"max_speed": 12,
"out_of_control_action": "ReturnHome",
"rth_altitude": 100,
"target_height": 100,
"target_latitude": 22.50203,
"target_longitude": 113.94186,
"takeoff_mode": "TakeoffWithFlyTo",
"commander_flight_mode": 0,
"rth_mode": 0
}curl --location '/openapi/v2.0/task/api/v1/workspaces//flight-tasks/drone-take-off' \
--header 'x-user-token;' \
--header 'x-user-token;' \
--header 'X-Request-Id: 5dff27bd-693c-4ace-979d-e26e920d497a' \
--header 'X-Request-Id;' \
--header 'X-Project-Uuid;' \
--header 'Content-Type: application/json' \
--data '{
"device_sn": "8UUDMAQ00A0152",
"media_folder_name": "patrol-2026-06-05",
"security_takeoff_height": 50,
"max_speed": 12,
"out_of_control_action": "ReturnHome",
"rth_altitude": 100,
"target_height": 100,
"target_latitude": 22.50203,
"target_longitude": 113.94186,
"takeoff_mode": "TakeoffWithFlyTo",
"commander_flight_mode": 0,
"rth_mode": 0
}'{
"code": 0,
"message": "success",
"data": {
"flight_id": "f3a1b2c4-9c2e-4f10-9b1d-3c2a8e7f0e11",
"fly_to_id": "5dff27bd-693c-4ace-979d-e26e920d497a"
}
}