Issue BLE keys to apartment users
|
POST /api/v1/billing/access-points/{access_point}/ble-controllers/{ble_controller}/keys |
Creates permanent BLE keys for users of the specified intercom apartment. If users is provided, keys are issued only to the listed apartment users; otherwise, they are issued to all apartment users. The key is created as permanent: its expiration date (valid_till) is set by the server to a long period (approximately 100 years). The valid_till value provided in the request isn't used. A generated access token (key_data) based on master/pid of the BLE controller is returned for each created key.
{
"intercom_id": 10,
"flat": 25,
"valid_till": "2024-02-01T00:00:00Z",
"users": [
42,
43
]
}
Method parameters
string access_point required , (path) Access point UUID.
string ble_controller required , (path) UUID of the BLE controller used to generate the token.
integer intercom_id required , Intercom ID. The intercom must exist.
integer flat required , Apartment number. The apartment must exist on the specified intercom.
string valid_till required , Required for validation but isn't used: the permanent key expiration date is set by the server.
array users, Array of apartment user IDs to issue keys to. If omitted, keys are issued to all apartment users.
|
200 |
|
Returns an array of created keys (one per user) JSON
|
|
404 |
|
Intercom or apartment not found |
|
422 |
|
Validation error. For more information, see General information > Validation. JSON
|