26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Revoke virtual key by ID

Revoke a virtual key by ID

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

Revokes a BLE controller virtual key by ID: the key is deleted, and its owner loses access to the controller. The revocation is recorded in the device event log. A key belonging to another controller isn't found at this endpoint (404).

Method parameters

string ble_controller  required , BLE controller UUID (in URL)


int key  required , Virtual key ID (in URL)

204  No Content

Key revoked

404  Not Found

BLE controller not found

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

404  Not Found

Key not found on this controller

JSON
{
    "error": "wrong api endpoint"
}
cURL
Bash
curl -k --request DELETE \
	--url 'https://your-domain/api/v1/billing/ble-controllers/{ble_controller}/virtual-keys/{key}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "ble_controller": "string",
    "key": 0
}'
PHP
PHP
$data = array (
  'ble_controller' => 'string',
  'key' => 0,
);
$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/ble-controllers/{ble_controller}/virtual-keys/{key}', false, $context);