获取航线任务详情
GET
/openapi/v0.9/task/api/v1/workspaces/{proj_uuid}/flight-tasks/{task_uuid}
es-task-service
请求参数
Path 参数
proj_uuid
string
必需
task_uuid
string
任务UUID
示例值:
"1234567890"
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/openapi/v0.9/task/api/v1/workspaces//flight-tasks/"1234567890"' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}'
返回响应
🟢200成功
application/json
Body
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object
resp.TaskDetail
begin_at
string
开始时间
cloud_to_cloud_id
string
云云对接ID
continuous_task_periods
array [array] | null
连续任务时段
dom
array[integer] | null
几号
dow
array[integer] | null
星期几
end_at
string
结束时间
exceptions
array[object (Exception) {8}]
异常信息列表
extended_begin_at
array[integer] | null
扩展开始时间
folder_info
object
文件夹信息
interval
integer
间隔时间
示例值:
3600
landing_dock_sn
string
降落机场SN
示例值:
SN123456
min_battery_capacity
integer
最低电量
示例值:
20
name
string
任务名称
示例值:
测试任务
out_of_control_action_in_flight
integer
必需
enum: 0,1
0-返航, 1-继续执行
示例值:
1
parent_task_id
integer
父任务ID
示例值:
0
repeat_type
integer
重复类型
示例值:
1
resumable_status
string
必需
enum: "", "auto", "manual"
示例值:
auto
rth_altitude
integer
返航高度
示例值:
50
rth_mode
integer
必需
enum: 0,1
0-智能高度, 1-设定高度
示例值:
0
sn
string
设备SN
示例值:
SN123456
status
integer
任务状态
示例值:
1
subscription_alert_cloud_to_cloud_frequency
integer
云云对接订阅频率
示例值:
60
subscription_alert_email_frequency
integer
邮件 订阅频率
示例值:
60
subscription_alert_phone_frequency
integer
短信订阅频率
示例值:
60
subscription_alert_user_web_frequency
integer
站内订阅频率
示例值:
60
subscription_receive_type
array[string] | null
订阅接收类型
示例值:
["email","phone","user_web","cloud_to_cloud"]
subscription_user
array[object (resp.SubscriptionUser) {2}] | null
订阅用户列表
tags
array[string] | null
标签列表
示例值:
["tag1","tag2"]
task_type
integer
必需
enum: 1,2,3,4
1-立即任务, 2-重复任务, 3-定时任务, 4-子任务
示例值:
1
uuid
string
任务UUID
示例值:
1234567890
wayline_precision_type
integer
必需
enum: 0,1
0-GPS, 1-RTK
示例值:
0
wayline_uuid
string
航线UUID
示例值:
1234567890
wom
integer
第几周
示例值:
1
示例
{
"code": 0,
"message": "string",
"data": {
"begin_at": "string",
"cloud_to_cloud_id": "string",
"continuous_task_periods": [
[
0
]
],
"dom": [
0
],
"dow": [
0
],
"end_at": "string",
"exceptions": [
{
"id": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"code": 0,
"message": "string",
"task_id": 0,
"happen_at": "2019-08-24T14:15:22Z",
"sn": "string"
}
],
"extended_begin_at": [
0
],
"folder_info": {
"expected_file_count": 10,
"folder_id": 1,
"uploaded_file_count": 5
},
"interval": 3600,
"landing_dock_sn": "SN123456",
"min_battery_capacity": 20,
"name": "测试任务",
"out_of_control_action_in_flight": 1,
"parent_task_id": 0,
"repeat_type": 1,
"resumable_status": "auto",
"rth_altitude": 50,
"rth_mode": 0,
"sn": "SN123456",
"status": 1,
"subscription_alert_cloud_to_cloud_frequency": 60,
"subscription_alert_email_frequency": 60,
"subscription_alert_phone_frequency": 60,
"subscription_alert_user_web_frequency": 60,
"subscription_receive_type": [
"email",
"phone",
"user_web",
"cloud_to_cloud"
],
"subscription_user": [
{
"nickname": [
"张三"
],
"user_id": [
"user123"
]
}
],
"tags": [
"tag1",
"tag2"
],
"task_type": 1,
"uuid": "1234567890",
"wayline_precision_type": 0,
"wayline_uuid": "1234567890",
"wom": 1
}
}
修改于 2025-06-27 08:51:03