List of all groups with is_house = true that belong to the current user.
is_house = true
GET /api/admin/v1/intercoms/house-groups
int per_page, Number of elements in one pagination page.
int
int page, Pagination page number
200 OK
OK
The list of groups
{ "data": [ { "id": 217498, "name": "intercom_sub_4", "full_pretty": null, "is_house": 1, "cameras_count": 0, "parent_id": 217497, "csa_id": null, "intercoms_count": 0 } ], "links": { "first": "https://vms.local:8080/api/admin/v1/intercoms/house-groups?page=1", "last": "https://vms.local:8080/api/admin/v1/intercoms/house-groups?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:8080/api/admin/v1/intercoms/house-groups?page=1", "label": "1", "active": true }, { "url": null, "label": "pagination.next", "active": false } ], "path": "https://vms.local:8080/api/admin/v1/intercoms/house-groups", "per_page": 25, "to": 1, "total": 1 } }
401 Unauthorized
Unauthorized
Authorization token not sent or not valid
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/intercoms/house-groups' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "per_page": 0, "page": 0 }'
$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/intercoms/house-groups', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.