Skip to content

审批设备申报

使用该接口在设备管理中通过或驳回一条成员自主申报申请

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/security_and_compliance/v2/device_apply_records/:device_apply_record_id
HTTP MethodPUT
接口频率限制10 次/秒
支持的应用类型custom,isv
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用security_and_compliance:device_apply_record:write 审核自主申报申请

请求头

名称类型必填描述
Authorizationstringtenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token
Content-Typestring固定值:"application/json; charset=utf-8"

路径参数

名称类型描述
device_apply_record_idstring设备申报记录ID
示例值:"7088763625288187923"

请求体

名称类型必填描述
is_approvedboolean是否审批通过
示例值:true

请求体示例

json
{
    "is_approved": true
}

响应

响应体

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--

响应体示例

json
{
    "code": 0,
    "msg": "success",
    "data": {}
}

错误码

HTTP状态码错误码描述排查建议
5001780001Internal server error.内部接口处理失败。若无法解决请寻求客服帮助
4001780101Request param error.检查参数是否正确
4001780102The API is in beta testing. Please contact customer support to request beta access.联系服务提供方排查
4001785008The device is not found. Please check the parameter device_record_id.检查参数中设备编码是否存在
4001785009The application record is not found. Please check the parameter device_apply_record_id.检查参数中审批记录是否存在

内容来源:飞书开放平台 · 自动爬取整理