Skip to main content
Skip table of contents

Удаление кодов администраторa

Удаление кодов

JSON
{
    "ids": [
        2,
        6,
        9
    ]
}

DELETE /api/admin/v1/intercom/{intercom}/codes

Параметры метода

int intercom, Идентификатор домофона, коды которого нужно удалить


array ids, Массив id кодов, которые нужно удалить, максимум 200 штук в одном запросе

204 No Content

Успешный ответ

401 Unauthorized

Токен авторизации не передан или не валидный

422 Unprocessable Entity

Возвращает JSON объект с ошибкой. VMS Admin/Общая информация панели администратора/Валидация администратора

JSON
{
    "message": "Тут не будет информативного сообщения",
    "errors": {
        "any_key": [
            "Тут будет описана причина ошибки"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/intercom/{intercom}/codes' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0,
    "ids": []
}'
PHP
PHP
$data = array (
  'intercom' => 0,
  'ids' => 
  array (
  ),
);
$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/admin/v1/intercom/{intercom}/codes', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.