获取冲突任务列表
POST
/openapi/v0.9/task/api/v1/workspaces/{proj_uuid}/flight-tasks/conflicts
es-task-service
请求参数
Path 参数
proj_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
begin_at
integer
必需
min 1
max 1712985600
示例值:
1712985600
continuous_task_periods
array [array]
可选
min 1
max 48
unique
>= 1 items<= 48 items
integer
可选
dom
array[integer]
可选
min 1
max 31
unique
>= 1 items<= 31 items
示例值:
[1,2,3]
dow
array[integer]
可选
min 1
max 7
unique
>= 1 items<= 7 items
示例值:
[1,2,3]
end_at
integer
可选
min 1
示例值:
1712985600
excluded_task_uuid
string
可选
required: false
extended_begin_at
array[integer]
可选
min 1
max 48
unique
>= 1 items<= 48 items
示例值:
[1712985600,1713985600]
interval
integer
可选
min 1
>= 1
示例值:
1
landing_dock_sn
string
降落设备sn
repeat_type
integer
可选
enum: 0 1 2 3 4 5 6 7 8
0-不重复, 1-每几秒, 2-每几分钟, 3-每几小时, 4-每几天, 5-每几周, 6-每几月(按日期), 7-每几月(按星期), 8-绝对每年
<= 8
示例值:
1
sn
string
必需
required: true
示例值:
SN123456
task_type
必需
required: true
enum: 1 2 3 5
-1 表示立即任务
-2 表示重复任务
-3 表示单次定时任务
-5 表示连续任务
Any of
time_zone
string
必需
required: true
示例值:
Asia/Chongqing
wayline_duration
number
可选
required: true
min 1
>= 1
示例值:
1712985600
wom
integer
一个月中的第几周
>= 1<= 4
示例值:
1
示例
{
"begin_at": 1712985600,
"continuous_task_periods": [
[
0
]
],
"dom": [
1,
2,
3
],
"dow": [
1,
2,
3
],
"end_at": 1712985600,
"excluded_task_uuid": "string",
"extended_begin_at": [
1712985600,
1713985600
],
"interval": 1,
"landing_dock_sn": "string",
"repeat_type": 1,
"sn": "SN123456",
"task_type": 0,
"time_zone": "Asia/Chongqing",
"wayline_duration": 1712985600,
"wom": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.9/task/api/v1/workspaces//flight-tasks/conflicts' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"begin_at": 1712985600,
"continuous_task_periods": [
[
0
]
],
"dom": [
1,
2,
3
],
"dow": [
1,
2,
3
],
"end_at": 1712985600,
"excluded_task_uuid": "string",
"extended_begin_at": [
1712985600,
1713985600
],
"interval": 1,
"landing_dock_sn": "string",
"repeat_type": 1,
"sn": "SN123456",
"task_type": 0,
"time_zone": "Asia/Chongqing",
"wayline_duration": 1712985600,
"wom": 1
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
响应消息
data
object
可选
conflicted_lists
array [object {2}] | null
冲突任务列表
task_time_errors
object
任务时间错误
示例
{
"code": 0,
"message": "success",
"data": {
"conflicted_lists": [
{
"timestamp": 1750231800,
"tasks": [
{
"id": 2086,
"created_at": "2025-06-18T15:08:36.20206+08:00",
"updated_at": "2025-06-18T15:08:36.20206+08:00",
"deleted_at": null,
"name": "新建计划78",
"uuid": "2985420e-b814-4b4e-85e4-138211a8f903",
"task_type": 3,
"status": 0,
"landing_dock_sn": "",
"begin_at": "2025-06-18T15:30:00+08:00",
"end_at": "2025-06-18T15:33:48+08:00",
"run_at": null,
"completed_at": null,
"wayline_uuid": "463c2531-99e0-4a83-97a2-d1a1bfe4c1bf",
"folder_id": 0,
"bid": "",
"current_waypoint_index": 0,
"total_waypoints": 2,
"media_upload_status": 0,
"resumable_status": "manual",
"is_break_point_resume": false,
"tags": null,
"cloud_to_cloud_id": "",
"source": 1,
"obstacle_avoidance_notify": "",
"operations": null,
"exceptions": null,
"is_conflicted": false,
"is_target": false,
"user_name": "xwqin.qin",
"wayline": {
"id": "",
"name": "",
"template_types": null,
"action_type": 0,
"wait_reason": 0
}
}
]
}
],
"task_time_errors": {
"task_date_error": {
"code": 0,
"level": 0,
"message": ""
},
"task_time_error": {
"code": 0,
"level": 0,
"message": ""
}
}
}
}
修改于 2025-06-25 09:37:44