审批设备申报
使用该接口在设备管理中通过或驳回一条成员自主申报申请
请求
| 项目 | 值 |
|---|---|
| HTTP URL | https://open.feishu.cn/open-apis/security_and_compliance/v2/device_apply_records/:device_apply_record_id |
| HTTP Method | PUT |
| 接口频率限制 | 10 次/秒 |
| 支持的应用类型 | custom,isv |
| 权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 | security_and_compliance:device_apply_record:write 审核自主申报申请 |
请求头
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
| Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
device_apply_record_id | string | 设备申报记录ID 示例值:"7088763625288187923" |
请求体
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
is_approved | boolean | 是 | 是否审批通过 示例值:true |
请求体示例
json
{
"is_approved": true
}响应
响应体
| 名称 | 类型 | 描述 |
|---|---|---|
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. | 检查参数中设备编码是否存在 |
| 400 | 1785009 | The application record is not found. Please check the parameter device_apply_record_id. | 检查参数中审批记录是否存在 |
