PHP
$data = array (
'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' => '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-subnets', false, $context);