Add a passcode
https://api.sciener.com/v3/keyboardPwd/add
Only the locks with V4 passcode can add a customized 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 |
| keyboardPwd |
String |
Y |
Passcode |
| keyboardPwdName |
String |
N |
Passcode name |
| startDate |
Long |
Y |
The time when it becomes valid, timestamp in milliseconds |
| endDate |
Long |
Y |
The time when it is expired, timestamp in milliseconds |
| addType |
Int |
N |
Adding method:1-via phone bluetooth, 2-via gateway, 3-via NB-IoT. The default value is 1 and should call SDK method to add passcode 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 |
| keyboardPwdId |
Int |
Passcode ID |
3.Example of response
{
"keyboardPwdId": 24242
}