Skip to main content

Associate multiple locks (devices) to a single tile

The endpoints links multiple locks to a single tile. The current user must be an administrator of the locks and also a site administrator. This endpoint is only available from API version 2 onwards.

The behavior of this endpoint is as follows:

  • Given set of devices is not empty, the tile will be associated to these given devices, disassociating from any other devices not in the set.
  • Given set of devices is empty, the tile will be disassociated from all devices.

HTTP Request

PUT https://api.doordeck.com/tile/{tileId}

Request Headers

HeaderRequiredDescription
Accepttrueapplication/vnd.doordeck.api-v2+json

Request Parameters

ParameterRequiredDescription
tileIdtrueId the tile to which the devices will be mapped

Example

CURL
curl 'https://api.doordeck.com/tile/00000000-0000-0000-0000-000000000000' \
-X PUT \
-H 'Authorization: Bearer TOKEN' \
-H 'Accept: application/vnd.doordeck.api-v2+json' \
--data-binary '{ \
"siteId": "SITE_ID", \
"devices": ["DEVICE_ID_1", "DEVICE_ID_2", "DEVICE_ID_3"] \
}'
Remember
  • Replace TOKEN with your access token.
  • Replace 00000000-0000-0000-0000-000000000000 with the tile ID to which you want to associate multiple locks.
  • Replace SITE_ID with the site ID to which the tile belongs.
  • Replace DEVICE_ID_1, DEVICE_ID_2, DEVICE_ID_3 with the device IDs to be associated to the tile.