Set Device Camera Status - Set Device Enable Switch - Imou Open Platform
setDeviceCameraStatus: Set device enable switch
Function details
Set the device enable switch.
Note: Only devices with accessType=PaaS in the device details are supported
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/setDeviceCameraStatus
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 | No | If the enableType is device-level enable, there is no need to pass the channel number, and the channel-level enable needs to pass the channel number | channel number | |
| enableType | String | Yes | Please refer to "Device Capability Switch Description" for details, the first letter is lowercase | Device enable type | |
| enable | Boolean | yes | true: enable enable; false: disable enable | Is it effective (on or off) |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"47bfb3dae3cbe1420d85d0902666c938",
"time":1603353544,
"nonce":"de9af038-97ed-4742-881d-6aa23effb4fc"
},
"id":"1254dfe5-bd59-4b8d-8a11-7ab4ba84def3",
"params":{
"enableType":"closeCamera",
"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":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
