PUT /api/admin/v1/ntp-servers/{server}
int server, unique identifier of the DHCP server
int
ip ip, IP address of the NTP server
ip
string description, description of the NTP server
string
200 OK
OK
Successful response
{ "id": 1, "ip": "192.168.1.100", "description": "description", "is_enabled": 0, "created_at": "2022-05-26 12:03:31" }
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/ntp-servers/{server}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "server": 0, "ip": "ip", "description": "string" }'
$data = array ( 'server' => 0, 'ip' => 'ip', '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/ntp-servers/{server}', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.