Skip to main content

Update Lock Properties

This endpoint allows the name, favourite flag and colour to be updated for an existing lock.

HTTP Request

PUT https://api.doordeck.com/device/LOCK_ID

Request Parameters

ParameterRequiredDescription
namefalseUpdate the user's alias for the lock
favouritefalseFlag the lock as a favourite
colourfalseUpdate the colour of the lock
settingsfalseUpdate global settings for the lock

The settings object is formed of the following fields

ParameterRequiredDescription
txBeaconRssifalseUpdate the iBeacon sensitivity (Deprecated)
rxBeaconRssifalseUpdate the iBeacon sensitivity (Deprecated)
proximityUnlockfalseControl if the lock can be unlocked via a touch action (Deprecated)
defaultNamefalseSet the default name for all users who have not set a custom alias
permittedAddressfalseA complete list of permitted IP addresses for performing actions on the door (public IP addresses)
delayfalseA time in milliseconds to delay the UI countdown action, for slow locks (Deprecated)
hiddenfalseHides a device from the favourite list
usageRequirementsfalseAn object containing usage requirements of the lock, see below.
directAccessEndpointsfalseA list of endpoints that can be used to communicate directly with Sentry Interactive Fusion for faster unlock operations
capabilitiesfalseA map of supported and unsupported capabilities

The usage requirements is formed of the following fields

ParameterRequiredDescription
timeFalseList of time requirements, see time requirement definition below.
locationFalseGPS restriction, see location requirement definition below.

The time requirements is formed of a list, each containing the following fields

ParameterRequiredDescription
starttrueLocal time, (HH:mm) describing the start of a permitted time window
endtrueLocal time, (HH:mm) describing the end of a permitted time window
timezonetrueTimezone, e.g. Europe/London, describing what hours the start and end are valid in
daystrueList of days the time window applies, e.g. MONDAY, TUESDAY

The location requirements is formed of the following fields

ParameterRequiredDescription
latitudetrueLatitude of the center point
longitudetrueLongitude of the center point
enabledfalseFlag indicating if the location requirement is enabled
radiusfalseIndicates what size the bubble should be where the location is considered matched, defaults to 100m
accuracyfalseIndicates how accurate the phone's GPS must be to be considered matched, defaults to 200m

Example

CURL
curl 'https://api.doordeck.com/device/00000000-0000-0000-0000-000000000000' \
-X PUT \
-H "Authorization: Bearer TOKEN" \
-H 'content-type: application/json' \
--data-binary '{"name":"Home","favourite":false,"colour":"#ffggaa"}'
Remember
  • Replace TOKEN with your access token.
  • Replace 00000000-0000-0000-0000-000000000000 with the lock's ID.