Skip to main content
Skip table of contents

Просмотр раскладки

Просмотр раскладки

GET/api/v1/layouts/{layout}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

layoutoptional

int

Идентификатор раскладки, которую нужно получить

Response

200

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

JSON
{
    "id": 219,
    "name": "1",
    "layout_template_id": 1,
    "layout_template": "Grid11",
    "user_id": 5,
    "grid": [
        {
            "id": 751,
            "group_id": 101,
            "status": "active",
            "type": "media_server_v2",
            "start_at": "2022-03-03 17:50:52",
            "created_at": "2022-01-27 19:46:27",
            "billing_id": null,
            "pretty_name": "Камера",
            "pretty_text": "Камеры",
            "short_address": "Камеры",
            "full_address": "Камеры",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "streams": [
                {
                    "id": 744,
                    "type": "high",
                    "camera_id": 751,
                    "is_preview_from_server": true,
                    "is_archive_from_server": null,
                    "status": "active",
                    "has_sound": false,
                    "layout_priority": "reserve",
                    "width": 2048,
                    "height": 1536
                },
                {
                    "id": 745,
                    "type": "low",
                    "camera_id": 751,
                    "is_preview_from_server": true,
                    "is_archive_from_server": null,
                    "status": "active",
                    "has_sound": false,
                    "layout_priority": "main",
                    "width": 2048,
                    "height": 1536
                }
            ],
            "services": {
                "ptz": false,
                "motion_detect": false
            },
            "has_sound": false,
            "is_archive_recording": true,
            "is_bridge": false,
            "is_favorite": false,
            "user_status": "active",
            "name": "Камера"
        }
    ],
    "created_at": "2021-10-04 13:57:56",
    "updated_at": "2021-10-04 13:57:56"
}
404

Если группа не принадлежит пользователю или не существует

401

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

Пример

JSON
curl -k --location --request GET 'https://vms.local/api/v1/layouts/{layout}' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

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

If this problem persists, please contact our support.