PHP
$data = array (
'server' => 0,
'ip' => 'ip',
'api_port' => 0,
'description' => 'string',
);
$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-servers/{server}', false, $context);