Config the passage mode of a lock
https://api.sciener.com/v3/lock/configPassageMode
If Passage mode is on, during the specific time period, the lock will remain open until it is manually closed
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
passageMode Int Y Passage mode: 1-on、2-off
startDate Int N Start time of cyclic, in minutes, for example 480 for 8:00
endDate Int N End time of cyclic, in minutes, for example 1080 for 18:00
isAllDay Int N All Hours: 1-YES、2-NO, if is all hours, then startDate and endDate params is ignored.
weekDays JsonArray[Int] N Week days, for example: [1,7], for monday and sunday.
autoUnlock Int N Auto unlock:1-on、2-off, set to 1 then the lock will auto unlock at the time the passage mode start
type Int Y Method:1-via phone bluetooth, 2-via gateway. Use method 1 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"
}