删除设备
使用该接口在设备管理中删除一台设备
请求
| 项目 | 值 |
|---|---|
| HTTP URL | https://open.feishu.cn/open-apis/security_and_compliance/v2/device_records/:device_record_id |
| HTTP Method | DELETE |
| 接口频率限制 | 10 次/秒 |
| 支持的应用类型 | custom,isv |
| 权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 | security_and_compliance:device_record:write 新增、更新、删除设备 |
请求头
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
device_record_id | string | 设备认证编码 示例值:"7089353870308032531" |
响应
响应体
| 名称 | 类型 | 描述 |
|---|---|---|
code | int | 错误码,非 0 表示失败 |
msg | string | 错误描述 |
data | \- | - |
响应体示例
json
{
"code": 0,
"msg": "success",
"data": {}
}错误码
| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 500 | 1780001 | Internal server error. | 内部接口处理失败。若无法解决请寻求客服帮助 |
| 400 | 1780101 | Request param error. | 检查参数是否正确 |
| 400 | 1780102 | The API is in beta testing. Please contact customer support to request beta access. | 联系服务提供方排查 |
| 400 | 1785008 | The device is not found. Please check the parameter device_record_id. | 检查参数中设备编码是否存在 |
