DJI 设备请求
DJI 设备请求用于查询由设备主动发起、需要云端业务系统处理的请求。开放平台会为每条请求生成request_id,并保留原始请求载荷,便于接入方识别业务类型并决定是否回复。
Endpoint
- 查询列表:
GET /api/v1/open/device-requests - 查询详情:
GET /api/v1/open/device-requests/{requestId}
调用流程
- 设备上报请求后,平台记录
request_id与原始inbound_payload。 - 业务侧通过列表接口筛选目标请求(按
vendor/device_id/request_type)。 - 业务侧通过详情接口读取单条请求上下文。
- 若需显式业务回复,调用
DJI Requests Reply页面对应接口写回。
Authentication
- API ID + API Key + 请求签名
- scope:
open:device-request:read
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| requestId | string | yes(详情查询) | 设备请求唯一标识(UUID) |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| vendor | string | no | 厂商过滤 |
| device_id | string | no | 设备 ID 过滤 |
| request_type | string | no | 请求类型过滤 |
Request Body
无。requests 查询接口使用路径参数与 query 参数;显式回复请使用 requests-reply 页面描述的 POST /api/v1/open/device-requests/{requestId}/reply。
Request Types
快速定位:| request_type | inbound_payload 关键字段 | 用途 |
|---|---|---|
flighttask_resource_get | resource_type, resource_ids | 请求资源(航线、媒体等) |
config | scope, items | 请求配置项读取/写入 |
update_topo | topo_version, topo_payload | 请求拓扑更新 |
Responses
列表与详情返回同一对象结构(列表为items[] 包裹):
| Field | Type | Description |
|---|---|---|
| request_id | string | 设备请求 ID |
| vendor | string | 厂商 |
| device_id | string | 设备 ID |
| request_type | string | 设备请求类型 |
| inbound_payload | object | 原始上行负载 |
| routing_decision | string | 路由决策 |
| reply_code | string | 当前回执码 |
| reply_message | string | 当前回执说明 |
| reply_source | string | auto 或 manual |
| standardized_reply | object | 标准化回执内容 |
| received_at | string(date-time) | 收到时间 |
| replied_at | string(date-time) | null | 回复时间 |
| updated_at | string(date-time) | 更新时间 |
Example
下一步
若请求需要业务显式回执,请进入DJI Requests Reply 页面完成回复写回。