Copy BLE controller access
|
POST /api/v1/billing/ble-controllers/{ble_controller}/copy-access |
Makes the access permissions of the BLE controller specified in the URL an exact copy of those of the source controller source_uuid: user virtual keys, physical BLE keys, and user floor settings if both controllers are elevator controllers.
The target controller specified in the URL is cleared first: all its virtual keys are revoked and its physical keys are unlinked. As a result, its access matches the source controller rather than combining both sets.
-
Virtual keys are reissued with new
id: temporary keys – with the same validity period as on the source controller; permanent keys – for a new validity period. -
Expired temporary keys on the source controller aren't copied; their count is returned in
skipped_expired. -
Floor settings are copied only between two elevator controllers; otherwise,
key_settingsis 0. -
If a source key owner can't be issued a key because the account has expired, the request is rejected with a 422 error under
user_ids.
Response fields:
-
virtual_keys– number of issued virtual keys; -
physical_keys– number of copied physical keys; -
key_settings– number of copied floor settings; -
skipped_expired– number of skipped expired temporary keys.
{
"source_uuid": "00000000-0000-0000-0000-000000000002"
}
Method parameters
string ble_controller required , UUID of the target BLE controller (in the URL)
string source_uuid required , UUID of the source BLE controller. Must differ from the controller in the URL
|
200 |
|
Successful response JSON
|
|
404 |
|
BLE controller not found JSON
|
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|