URL

POST https://{gatewayIp}:5480/api/v2/ntpservice

Sample URLs

https://192.168.xxx.xxx:5480/api/v2/ntpservice

Sample cURL

curl -k -X POST https://{GatewayIP}:5480/api/v2/ntpservice 
-H 'Accept: application/json' 
-H 'Authorization: Token <TOKEN>' 
{ 
    "service": "<ON/OFF>"
}

Header format

HeaderValue
AuthorizationToken {accessToken}
Content-typeapplication/json
Acceptapplication/json

Parameters

The fields are mandatory.

FieldData TypeDescription
serviceStringUse the ON and OFF switch to start or stop the NTP service.

Status code

200 OK

Sample request

{
    "service": "ON"
}

Sample response

{"Success":"Switched ON the NTP Service Successfully"}