To write the parameter value.

Request

{
      "$schema": "http://json-schema.org/draft-07/schema#",
      "title": "set - request",
      "type": "object",
      "properties": {
        "value": {
        "type": "object",
        "additionalProperties": {
          "type": [
            "string",
            "number",
            "boolean"
          ],
          "minLength": 1,
          "pattern": "^[a-z_][a-z0-9_]*$"
        }
        }
      },
      "required": [
        "value"
      ],
      "additionalProperties": false
    }

Meaning of json items:

{
      "value": {
        "sntp_enable":"no",
        "sntp_server": "ntp.cesnet.cz",
        "sntp_timeout": 20,
        "sntp_period": 2,
        "dev_sn": "00000013",
        "test_wr_param": 1
      }
}

Response

{
      "$schema": "http://json-schema.org/draft-07/schema#",
      "title": "set - response",
      "type": "object",
      "properties": {
        "status": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[a-z_][a-z0-9_]*$"
          }
        }
      },
      "additionalProperties": false
}

Meaning of json items:

{
      "status": {
        "sntp_timeout": "undefined",
        "sntp_period": "bad value",
        "sntp_enable": "bad type",
        "dev_sn": "access denied"
      }
}