Skip to main content
Skip table of contents

Retrieve a list of users who can add a Bridge device

Users who can add a bridge

Permission - bridges

GET api/admin/v1/bridges/users

string search, Search is carried out by login and name


int per_page, Number of elements in one pagination page.


int page, Pagination page number

200 OK

User list

JSON
{
    "data": [
        {
            "id": 1,
            "name": "name1",
            "login": "login1",
            "created_at": "2023-08-30T15:25:07.000000Z",
            "updated_at": "2023-09-04T08:45:12.000000Z",
            "expired_at": null,
            "user_type": "user",
            "parent_id": null,
            "is_system": 0,
            "is_licence_limit_reached": true,
            "ptz_priority": 10,
            "access_token_id": null
        },
        {
            "id": 2,
            "name": "name2",
            "login": "login2",
            "created_at": "2023-07-17T13:21:16.000000Z",
            "updated_at": "2023-07-17T13:21:16.000000Z",
            "expired_at": null,
            "user_type": "user",
            "parent_id": null,
            "is_system": 0,
            "is_licence_limit_reached": true,
            "ptz_priority": 10,
            "access_token_id": null
        }
    ],
    "links": {
        "first": "https://vms.local:8000/api/admin/v1/bridges/users?page=1",
        "last": "https://vms.local:8000/api/admin/v1/bridges/users?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:8000/api/admin/v1/bridges/users?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local:8000/api/admin/v1/bridges/users",
        "per_page": 25,
        "to": 2,
        "total": 2
    }
}

401 Unauthorized

Authorization token not sent or not valid

422 Unprocessable Entity

Returns a JSON object with an error.

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domainapi/admin/v1/bridges/users' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "search": "string",
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'search' => 'string',
  '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-domainapi/admin/v1/bridges/users', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.