Skip to main content
POST
/
locks
/
configure_auto_lock
{
  "action_attempt": {
    "action_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "result": {},
    "error": {
      "type": "<string>",
      "message": "<string>"
    }
  },
  "ok": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
auto_lock_enabled
boolean
required

Whether to enable or disable auto-lock.

device_id
string<uuid>
required

ID of the lock for which you want to configure the auto-lock.

auto_lock_delay_seconds
number<float>

Delay in seconds before the lock automatically locks. Required when enabling auto-lock. Must be between 1 and 60.

Required range: 1 <= x <= 60

Response

OK

action_attempt
object
required

Tracks the progress of this operation. Poll using the action_attempt_id.

ok
boolean
required