Edit Configurations
Modifies the specified settings of the device. They are described in Configuration Parameters. The HTTP method used is POST and the contentType is application/json.
POST /set_configuration.fcgi
Parameters
- The parameter will be a JSON Object corresponding to the settings parameters you want to change.
Response
- The response will be a JSON Object corresponding to the modified setting parameters.
Request Example
Enables the beep sound and sets the activation time for relay 1 to 3 seconds:
$.ajax({
url: "/set_configuration.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
general: {"beep_enabled": "1", "relay1_timeout": "3000"}
})
});