DJI Delivery Sync
  1. Phase three
DJI Delivery Sync
  • Authentication instructions and webhook details
  • HMS Code Details
  • Phase one
    • Get device list
      GET
    • Get the device topology status, the aircraft and remote control form the topology
      GET
    • Get device properties
      GET
    • Enable device live streaming and obtain the streaming URL
      POST
    • Get device task list
      GET
  • Phase two
    • Get route list
      GET
    • Get detail of a single route
      GET
    • Get location list
      GET
    • Create location
      POST
    • Delete location
      DELETE
    • Device execution command
      POST
    • Query device execution command status
      GET
  • Phase three
    • Create task
      POST
    • Edit task
      PUT
    • Delete task
      DELETE
    • Start task
      POST
    • Start stream forwarding
      POST
    • Stop stream forwarding
      DELETE
  1. Phase three

Create task

POST
/task/sdk/v1/groups/{{group_id}}/tasks

Request

Path Params

Body Params application/json

Example
{
    "task_name": "New Task",
    "device_sn": "1581FXXXXXXXXXXXTEST",
    "mission_id": "d4faa624-32ef-46b5-ac57-ff9cd67441d4",
    "remark": "Transport supplies",
    "notifies": []
}

Request Code 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 -g --request POST '/task/sdk/v1/groups/{{group_id}}/tasks' \
--header 'Content-Type: application/json' \
--data-raw '{
    "task_name": "New Task",
    "device_sn": "1581FXXXXXXXXXXXTEST",
    "mission_id": "d4faa624-32ef-46b5-ac57-ff9cd67441d4",
    "remark": "Transport supplies",
    "notifies": []
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code": 0,
    "message": "",
    "data": {
        "id": "string",
        "group_id": "string",
        "task_name": "string",
        "device_sn": "string",
        "remark": "string",
        "code": 0,
        "status": 0,
        "reason": "string",
        "created_nickname": "string",
        "create_time": 0,
        "update_time": 0,
        "start_time": 0,
        "estimate_time": 0,
        "end_time": 0,
        "mission": {
            "mission_id": "string",
            "mission_name": "string",
            "estimate_time": 0,
            "origin_mission_id": "string",
            "total_estimate_time": 0
        },
        "notifies": [
            "string"
        ]
    }
}
Modified at 2024-06-25 11:59:09
Previous
Query device execution command status
Next
Edit task
Built with