Modify Device Alarm Status - Set the Motion Detection Switch - Imou Open Platform
modifyDeviceAlarmStatus: Set the motion detection switch
Function details
Set the equipment motion detection switch.
Remarks: For devices with accessType=PaaS in the device details, it is recommended to use the setDeviceCameraStatus interface to implement device function switches
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/modifyDeviceAlarmStatus
Minimum permissions required for sub-account token request
"Permission":"Config" "Resource":"cam:serial number:channel number"
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceId | String | Yes | Device serial number | ||
| channelId | String | Yes | Channel ID | ||
| enable | Boolean | Yes | true: the setting switch is turned on, that is effective; false: the setting switch is turned off, that is not effective | Is it effective |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"1c382aa440c755b701cc43e353e2b61f",
"time":1603357118,
"nonce":"cf45eda4-ebc1-47dc-b8bd-8fcc64aa1efa"
},
"id":"f27bc7ca-2b62-46b9-954f-77bd3d48a032",
"params":{
"enable":true,
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
No data returned
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0"
},
"id":"f27bc7ca-2b62-46b9-954f-77bd3d48a032"
}
