Skip to main content
Skip table of contents

Cписок типов действий пользователей

Получение списка типов действий пользователей

Возвращает список типов действий пользователей.

GET /api/admin/v1/log-entries/types

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

int per_page, количество элементов в одной странице пагинации. По умолчанию 25 штук


int page, номер страницы пагинации

200 OK

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

JSON
{
    "data": [
        {
            "id": 87,
            "name": "ФИО",
            "login": "user@mail.com",
            "created_at": "2022-03-24 11:26:58",
            "updated_at": "2022-03-30 16:48:54",
            "expired_at": null,
            "is_licence_limit_reached": false,
            "ptz_priority": 10,
            "access_token_id": null
        },
        {
            "id": 85,
            "name": "ФИО",
            "login": "user@mail.com",
            "created_at": "2022-03-18 13:21:13",
            "updated_at": "2022-03-18 13:21:13",
            "expired_at": "2023-08-31 13:20:28",
            "is_licence_limit_reached": false,
            "ptz_priority": 1,
            "access_token_id": null
        },
        {
            "id": 76,
            "name": "ФИО",
            "login": "user@mail.com",
            "created_at": "2022-02-09 10:19:38",
            "updated_at": "2022-04-18 12:24:30",
            "expired_at": "2022-08-31 10:18:55",
            "is_licence_limit_reached": false,
            "ptz_priority": 1,
            "access_token_id": null
        }
    ],
    "links": {
        "first": "https://vms.local/api/admin/v1/log-entries/users?search=%D1%86&page=1",
        "last": "https://vms.local/api/admin/v1/log-entries/users?search=%D1%86&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/log-entries/users?search=%D1%86&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/admin/v1/log-entries/users",
        "per_page": 25,
        "to": 3,
        "total": 3
    }
}

401 Unauthorized

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

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/log-entries/types' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'per_page' => 0,
  'page' => 0,
);
$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/log-entries/types', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.