NTI Power Remote Rebooter with C13 Connection
3. API to change AC Output or Digital Output status or their Operation Mode
Request Type: GET
Endpoint: /updateOut.html
HTTP Auth required
Response Format: JSON
Required parameters:
"oid" is the index of Outputs ranging from 0 to 2
0 = AC Output
1= Digital Output 1
2= Digital Output 2
"action" is one of "off", "on", "mode", "cycle". Off and On turn off and turn on the designated output respectively. Mode changes
the operation mode from Auto to Manual and vice versa (this is a toggle). "Cycle" power cycles the output as per settings
"jsonr" should always be set to 1
Example Curl commands:
curl -v -u root:nti "http://192.168.3.xxx/updateOut.html?oid=0&action=off&jsonr=1"
curl -v -u root:nti "http://192.168.3.xxx/updateOut.html?oid=1&action=on&jsonr=1"
curl -v -u root:nti "http://192.168.3.xxx/updateOut.html?oid=0&action=mode&jsonr=1"
curl -v -u root:nti "http://192.168.3.xxx/updateOut.html?oid=0&action=cycle&jsonr=1"
Response if successful:
{"code":200, "msg":"OK","data":{}}
On Failure, response will have similar format with error code in "code".
28