26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Delete key

DELETE  /api/v1/billing/intercoms/{intercom}/keys/{key}

Deletes an intercom MIFARE key. The key is removed from the device through vendorFactory and from the database.

int intercom  required , Intercom ID (in the URL)


int key  required , Key ID (in the URL)

204  No Content

Key successfully deleted

404  Not Found

Intercom or key not found

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