PHP
$data = array (
'subnet' => 0,
'network' => 'ipv4',
'mask' => 'integer',
'relay_list' => 'string',
'option_routers' => 'ipv4',
'pools' =>
array (
'' => 'ipv4',
),
'pools.' => 'void',
'dhcp_subnet_group_id' => 'integer',
);
$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-subnets/{subnet}', false, $context);