Skip to main content
Skip table of contents

Области

Области

Список областей. Список всех областей, которые доступны для создания камер.

GET /api/admin/v1/csa/regions

200 OK

Список областей

JSON
[
    {
        "region_id": 1,
        "name": "Область",
        "city_id": null
    },
    {
        "region_id": 2,
        "name": "Область",
        "city_id": null
    },
    {
        "region_id": 3,
        "name": "Область",
        "city_id": null
    },
    {
        "region_id": 4,
        "name": "Область",
        "city_id": null
    },
    {
        "region_id": 5,
        "name": "Область",
        "city_id": 17030
    },
    {
        "region_id": 6,
        "name": "Область",
        "city_id": null
    },
    {
        "region_id": 7,
        "name": "Область",
        "city_id": null
    },
    {
        "name": "Город",
        "region_id": 8,
        "city_id": 2458
    },
    {
        "name": "Город",
        "region_id": 9,
        "city_id": 2461
    },
    {
        "name": "Город",
        "region_id": 10,
        "city_id": 2463
    },
    {
        "name": "Город",
        "region_id": 11,
        "city_id": 9387
    },
    {
        "name": "Город",
        "region_id": 12,
        "city_id": 9393
    },
    {
        "name": "Город",
        "region_id": 13,
        "city_id": 12370
    },
    {
        "name": "Город",
        "region_id": 14,
        "city_id": 17025
    },
    {
        "name": "Город",
        "region_id": 15,
        "city_id": 22667
    },
    {
        "name": "Город",
        "region_id": 16,
        "city_id": 26099
    },
    {
        "name": "Город",
        "region_id": 17,
        "city_id": 26103
    }
]

401 Unauthorized

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

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/csa/regions' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '[]'
PHP
PHP
$data = array (
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/csa/regions', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.