Change passcode
https://api.sciener.com/v3/keyboardPwd/change
Only the locks with V4 passcode can change the passcode via bluetooth or gateway.
1. Description
| Name |
Type |
Required |
Description |
| clientId |
String |
Y |
The app_id which is assigned by system when you create an application |
| accessToken |
String |
Y |
Access token |
| lockId |
Int |
Y |
Lock ID |
| keyboardPwdId |
Int |
Y |
Passcode ID |
| keyboardPwdName |
String |
N |
New passcode name |
| newKeyboardPwd |
String |
N |
The new passcode |
| startDate |
Long |
N |
The start time of the new passcode, timestamp in milliseconds |
| endDate |
Long |
N |
The end time of the new passcode, timestamp in milliseconds |
| changeType |
Int |
N |
Changing method:1-via phone bluetooth, 2-via gateway, 3-via NB-IoT. The default value is 1 and should call SDK method first. If you use the method 2, you can call this api directly. |
| date |
Long |
Y |
Current time (timestamp in millisecond) |
2.Response
| Parameter |
Type |
Description |
| errcode |
Int |
Error code |
| errmsg |
String |
Error message |
3.Example of response
{
"errcode": 0,
"errmsg": "none error message",
"description": "none error message or means yes"
}