Set the Motion Detection Exclusion Zone when Human Detection or Motion Detection is enabled on the device
Production: https://open.eye4cloud.com/{{open_id}}/open/v1/device/motionDetectionExclusionZone| Field Name | Required | Type | Description |
|---|---|---|---|
| device_id | Yes | string | Device ID |
| timestamp | Yes | int64 | Timestamp in seconds |
| nonce | Yes | string | Random string, 8-20 characters |
| sign | Yes | string | See "Sign Generation Examples" for the implementation details |
| password | No | string | Device password; if omitted, the password registered for the device on the Open Platform is used |
| data | No | string | Device DATA; an empty string can be passed |
| imei | No | string | Device IMEI; an empty string can be passed |
| sensor | Yes | int | Camera channel: 0-2 |
| mdReign | Yes | []int | Exclusion-zone field description: the array length is fixed at 18. The app divides the screen into a 22 x 18 grid. From left to right, bit21 - bit0: a value of 0 means the cell is painted/blocked, and a value of 1 means it is not painted. Example: md_reign[0] = 4194303, or | 0011 1111 1111 1111 1111 1111 |, means the first row is not painted. |
curl 'https://open.eye4cloud.com/{{open_id}}/open/v1/device/motionDetectionExclusionZone' \
-H 'Content-Type: application/json' \
--data-raw '{
"device_id": "xxxx",
"timestamp": 1758867195,
"nonce": "",
"sign": "",
"password": "",
"sensor":1,
"mdReign":[0,4194303,4194303,4194303,4194303,
4194303,4194303,4194303,4194303,4194303,
4194303,4194303,4194303,4194303,4194303,
4194303,0,4194303]
}'
| Field Name | Type | Description |
|---|---|---|
| error_code | int | Status code: 0 indicates success; other values indicate an error |
| error_message | string | Error message; success indicates a normal response |
| data | object | {} |
| data.resp | int | Response: 1 means execution succeeded; 2 means execution failed |
Example:
{
"error_code": 0,
"error_message": "success",
"error_tips": "",
"data": {
"resp": 1
}
}