При создании, автоматически открывается доступ текущему администратору к этой группе. Если нужно дать доступ другим администраторам, то это можно сделать через
POST /api/admin/v1/dhcp-subnet-groups
string title, название группы
string
array users, массив id пользователей
array
200 OK
OK
Успешный ответ
{ "id": 64, "title": "Группа", "users": [ { "id": 1, "name": "admin", "login": "admin@mail.com", "created_at": "2021-05-27 15:43:37", "updated_at": "2022-05-06 14:19:13", "expired_at": null, "is_licence_limit_reached": false, "ptz_priority": 10, "access_token_id": null } ] }
400 Bad Request
Bad Request
Это ошибка означает, что DHCP группы недоступны на данный момент из-за отсутствия настроенного DHCP
401 Unauthorized
Unauthorized
Токен авторизации не передан или не валидный Получение токена
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/dhcp-subnet-groups' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "title": "string", "users": [] }'
$data = array ( 'title' => 'string', 'users' => array ( ), ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/dhcp-subnet-groups', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.