Skip to main content
Skip table of contents

List of sub-users

Returns all created sub-users

GET/api/v1/users/subusers

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

per_pagerequired

int

The number of elements in one pagination page. Default 25 pieces

pagerequired

int

Pagination page number

Response

200

Successful response

JSON
{
    "data": [
        {
            "id": 37,
            "login": "user@mail.com",
            "name": "user@mail.com",
            "parent_id": 13,
            "created_at": "2021-11-10 19:10:57",
            "updated_at": "2021-12-02 20:48:29",
            "access_token_id": null,
            "can_update_password": false
        },
        {
            "id": 36,
            "login": "user@mail.com",
            "name": "user@mail.com",
            "parent_id": 13,
            "created_at": "2021-11-10 19:10:19",
            "updated_at": "2022-04-20 14:03:48",
            "access_token_id": null,
            "can_update_password": false
        }
    ],
    "links": {
        "first": "https://vms.local/api/v1/users/subusers?per_page=25&page=1",
        "last": "https://vms.local/api/v1/users/subusers?per_page=25&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/v1/users/subusers?per_page=25&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/v1/users/subusers",
        "per_page": 25,
        "to": 12,
        "total": 12
    }
}
401

Authorization token not provided or invalid

422

Returns a JSON object with an error, see Validation

JSON
{
    "message": "There won't be any informative message here",
    "errors": {
        "any_key": [
            "Here the error cause will be described"
        ]
    }
}

Example

JSON
curl -k --location --request GET 'https://vms.local/api/v1/users/subusers?per_page=int&page=int' \
--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.