Open Platform
Skip to content

Modify unauthorized alarm information ​

https://cnapi.sciener.com/v3/lock/updateUnauthorizedAttemptAlert

Configure unauthorized alarm messages.

Once this function is enabled, the smart lock will immediately lock if the number of unauthorized unlocking attempts reaches a specified number.

The lock's characteristic value of 93 indicates that the unauthorized alarm function is supported.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

javascript
curl --location -g --request POST 'https://cnapi.sciener.com/v3/lock/updateUnauthorizedAttemptAlert' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'type=1' \
--data-urlencode 'lockId=3001' \
--data-urlencode 'unauthorizedAttemptAlertFlag=1' \
--data-urlencode 'unauthorizedAttemptAlertCount=4' \
--data-urlencode 'unauthorizedAttemptAlertLockTime=60' \

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYClient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
typeIntY1- Update via Bluetooth; 2- Update via gateway or Wi-Fi lock
lockIdStringYLock ID
unauthorizedAttemptAlertFlagIntYUnauthorized alarm, 1 - On, 0 - Off
unauthorizedAttemptAlertCountIntYUnauthorized alerts, number of failures, 0 indicates off.
unauthorizedAttemptAlertLockTimeIntYUnauthorized alarm, lock time, unit - seconds
unauthorizedAttemptAlertPwdIntNUnauthorized alarm, password flag: 1 - on, 0 - off
unauthorizedAttemptAlertCardIntNUnauthorized alarm, IC card flag: 1 - On, 0 - Off
unauthorizedAttemptAlertFingerprintIntNUnauthorized access alarm, fingerprint indicator, 1 - open, 0 - closed
dateLongYCurrent time (timestamp, in milliseconds)

3 Response and example ​

ParameterTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError Description
{
    "errcode": 0, 
    "errmsg": "none error message",
    "description":"表示成功或是"
}
CopyRight © 2012-2026 Sciener.All Rights Reserved