- 说明
- 获取token
- 获取token
- 设备树
- 设备类
- ai云端算法配置
- 云端系统算法集
- 算法数据统计
- 人员
- 部门
- 告警回调
- 录像管理
- 端侧算法
- 智慧云店
配置设备端侧算法
POST
/openApi/device/algorithm/capability/configDeviceAlgorithm
请求参数
Body 参数application/json
deviceId
string | null
设备id
type
integer | null
必需
openStatus
integer | null
必需
>= 0<= 1
deviceEndConfigBean
object (OpenApiDeviceEndConfigBean)
配置信息
mode
integer | null
可选
alarmRuleType
integer | null
可选
regionAlarmDirect
integer | null
可选
ruleRegion
array[object (OpenApiDeviceEndPointBean) {2}] | null
警戒区域点坐标
lineAlarmDirect
integer | null
可选
ruleLie
array[object (OpenApiDeviceEndPointBean) {2}] | null
警戒线坐标
sensitivityType
integer | null
可选
alarmInterval
integer | null
告警间隔
trackBoxStatus
integer | null
可选
showRuleStatus
integer | null
可选
cycleType
integer | null
可选
taskTimeBeans
array[object (OpenApiDeviceEndTaskTimeBean) {2}] | null
时间段
deviceAlarmSound
integer | null
可选
deviceAlarmSoundInterval
integer | null
可选
deviceAlarmSoundType
enum<integer> | enum<null>
设备报警声 类型
枚举值:
WARN_VOICE_TIP_7WARN_VOICE_TIP_1WARN_VOICE_TIP_8WARN_VOICE_TIP_9WARN_VOICE_TIP_2WARN_VOICE_TIP_3WARN_VOICE_TIP_10WARN_VOICE_TIP_4WARN_VOICE_TIP_11WARN_VOICE_TIP_12WARN_VOICE_TIP_5
deviceAlarmSoundSize
integer | null
设备报警声 音量
示例
{
"deviceId": "string",
"type": 0,
"openStatus": 0,
"deviceEndConfigBean": {
"mode": 0,
"alarmRuleType": 0,
"regionAlarmDirect": 0,
"ruleRegion": [
{
"X": 0,
"Y": 0
}
],
"lineAlarmDirect": 0,
"ruleLie": [
{
"X": 0,
"Y": 0
}
],
"sensitivityType": 0,
"alarmInterval": 0,
"trackBoxStatus": 0,
"showRuleStatus": 0,
"cycleType": 0,
"taskTimeBeans": [
{
"weekNum": 0,
"times": [
"string"
]
}
],
"deviceAlarmSound": 0,
"deviceAlarmSoundInterval": 0,
"deviceAlarmSoundType": "WARN_VOICE_TIP_7",
"deviceAlarmSoundSize": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://bcloud.jftechws.com/openApi/device/algorithm/capability/configDeviceAlgorithm' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"type": 0,
"openStatus": 0,
"deviceEndConfigBean": {
"mode": 0,
"alarmRuleType": 0,
"regionAlarmDirect": 0,
"ruleRegion": [
{
"X": 0,
"Y": 0
}
],
"lineAlarmDirect": 0,
"ruleLie": [
{
"X": 0,
"Y": 0
}
],
"sensitivityType": 0,
"alarmInterval": 0,
"trackBoxStatus": 0,
"showRuleStatus": 0,
"cycleType": 0,
"taskTimeBeans": [
{
"weekNum": 0,
"times": [
"string"
]
}
],
"deviceAlarmSound": 0,
"deviceAlarmSoundInterval": 0,
"deviceAlarmSoundType": "WARN_VOICE_TIP_7",
"deviceAlarmSoundSize": 0
}
}'
返回响应
🟢200成功
application/json
Body
success
boolean | null
可选
msg
string | null
可选
code
string | null
可选
model
boolean | null
可选
attributes
string | null
可选
示例
{
"success": false,
"msg": "",
"code": "",
"model": false,
"attributes": ""
}