更新时间:2023-04-13 GMT+08:00
分享

删除LoRa节点

接口说明

删除LoRa节点。

注意事项

应用已鉴权,在header中携带参数app_key和Authorization: Bearer {accessToken}

URI

请求方法

DELETE

URI

/api/v3.0/devices/lora/node/{deviceId}

传输协议

HTTPS

请求参数

名称

必选/可选

类型

位置

说明

app_key

必选

String

Header

已鉴权应用的appId

Authorization

必选

String

Header

请求的认证信息,值为“Bearer ******”,其中******为Auth鉴权接口返回的accessToken

deviceId

必选

String

Path

设备ID,用于唯一标识一个设备,在注册LoRa节点时由物联网平台分配获得。

ownerAppId

可选

String(36)

Query

LoRa节点所属的应用ID,当删除授权应用下的LoRa节点时需要填写。

请求示例

DELETE https://{host}:{port}/api/v3.0/devices/lora/node/{deviceId}?ownerAppId={ownerAppId}
Content-Type: application/json
app_key: ********
Authorization: ********

响应示例

Status Code: 204 No Content

错误码

HTTP状态码

HTTP状态码说明

错误码

错误码描述

204

No Content

-

-

403

Forbidden

100217

The application hasn't been authorized.

100249

The operation is not allowed.The application does not have edit permission.

1200006

The operation is not allowed. The LoRa Server is not online.

404

Not Found

100203

The application is not existed.

1200002

The LoRa node does not exist.

1200017

The LoRa Server is not existed.

500

Internal server error

100001

Internal server error.

100220

Get AppKey from header failed.

相关文档