Last Updated on : 2023-12-07 03:34:02
Create temporary password
POST: /v1.0/smart-lock/device/{device_id}/template/temp-password
Parameter name | Type | IN | Required | Description |
---|
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
name | String | false | Temporary password name, if empty, the default name | |
pwd_id | Long | false | Temporary password number | |
msg_id | Long | false | Message ID | |
uid | String | false | ||
password | String | false |
| |
effective_time | Long | false | Effective time (10-digit timestamp) | |
invalid_time | Long | false | Expiration time (10-digit timestamp) | |
password_type | String | false | Password encryption type
| |
ticket_id | String | false | Temporary Key ID | |
phone | String | false | Mobile number | |
type | Integer | false | Password valid type
| |
time_zone | String | false | Time zone. If periodic function is required, you need to fill in this | |
bluetooth_symbolic | Boolean | false | Special parameters for Bluetooth door lock with gateway
| |
schedule_list | List | false | periodic information | |
sn | String | false | The serial number of the password of the Bluetooth product | |
check_name | Boolean | false | Whether to check whether the name is repeated
| |
country_code | String | false | User's country code | |
iot_uid | Sstring | false | iot platform user id, this parameter can be used to send SMS | |
app_id | Integer | false | Business appId | |
available_time | Integer | false | User's country code | |
sms_param_map | Map | false | Set of dynamic parameters when sending SMS | |
sms_template | String | false | SMS template (if passed, this template shall prevail) | |
dp_tunnel | Integer | false | Information distribution channel 1, non-cloud distribution 2, cloud distribution | |
is_record | Boolean | false | Whether to add records | |
device_id | String | uri | true | Device Id |
Description of schedule_list
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
effective_time | Long | false | Start time. Stored in minutes, such as "07:30", the value is 7x60+30=450 | |
invalid_time | Long | false | End time. Stored in minutes, such as "08:30", the value is 8x60+30=510 | |
working_day | Integer | false | Week, each value accumulates:
|
Parameter name | Type | Description |
---|---|---|
result | TemplatePwdResponse |
Description of result
Parameter name | Type | Description |
---|---|---|
pwd_id | Long | Temporary password number |
POST: /v2.0/smart-lock/devices/vdevo15345926009****/temp-passwords
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback