26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Revoke user's virtual key

Revoke a user's virtual key

DELETE  /api/v1/billing/users/{login}/ble-controllers/{ble_controller}/virtual-keys

Revokes the virtual key held by the user with the specified login on the BLE controller: the key is deleted, and the user loses access to the controller. The revocation is recorded in the device event log.

Method parameters

string login  required , User login (in URL)


string ble_controller  required , BLE controller UUID (in URL)

204  No Content

Key revoked

404  Not Found

BLE controller not found

JSON
{
    "error": "resource not found"
}

404  Not Found

User not found or has no key on this controller

JSON
{
    "error": "wrong api endpoint"
}
cURL
Bash
curl -k --request DELETE \
	--url 'https://your-domain/api/v1/billing/users/{login}/ble-controllers/{ble_controller}/virtual-keys' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string",
    "ble_controller": "string"
}'
PHP
PHP
$data = array (
  'login' => 'string',
  'ble_controller' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'DELETE',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/users/{login}/ble-controllers/{ble_controller}/virtual-keys', false, $context);