PUT /api/admin/v1/dhcp-subnet-groups/{group}
int group, unique identifier of the DHCP pool group
int
string title, group name
string
array users, array of user IDs
array
200 OK
OK
Successful response
{ "id": 64, "title": "Group", "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
This error indicates that DHCP groups are currently unavailable due to the absence of configured DHCP settings.
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid. Obtaining a token
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/dhcp-subnet-groups/{group}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "group": 0, "title": "string", "users": [] }'
$data = array ( 'group' => 0, 'title' => 'string', 'users' => array ( ), ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'PUT', '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/{group}', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.