Set management server settings
Set management server settings.
If Link is enabled - Link will sync identifiers, access rules, logs etc.
If realtime logging is enabled - panel will send the logs in realtime to the server.
If heartbeat is enabled - panel will send keep alive to the server every 10 seconds. When MQTT protocol is used heartbeat is enabled by default.
- application/json
Request Body required
- is_enabled boolean requiredDevice should try to connect to Management server 
- protocol string requiredPossible values: [ http,mqtt]User can choose between HTTP and MQTT protocols 
- settings object required- Settings used for connecting to management server oneOf- MOD1
- MOD2
 url ipv4 or dns required- Server address password string required- Password for server authentication is_logging_enabled boolean required- Should device send logs to server or not is_encrypted boolean required- If enabled you can provide custom certificate with - POST /network/management/settings/certificateor device will use default one.url ipv4 or dns required- Server address password string required- Password for server authentication is_logging_enabled boolean required- Should device send logs to server or not is_heartbeat_enabled boolean required- If enabled device will send keep alive request every 10 seconds 
- 200
- 400
- 401
OK
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- error object- Describes the base error user might get code string- Possible values: [ - invalid_authentication,- permission_denied,- not_valid,- system_error]- Error code message string- Error message - data object- Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc. param string- Describes the parameter that did not pass a validation 
{
  "error": {
    "code": "not_valid",
    "message": "Data validation error",
    "data": {
      "param": "must be an string"
    }
  }
}
Please log in
- application/json
- Schema
- Example (from schema)
- Example
Schema
- error object- Describes the base error user might get code string- Possible values: [ - invalid_authentication,- permission_denied,- not_valid,- system_error]- Error code message string- Error message - data object- Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc. param string- Describes the parameter that did not pass a validation 
{
  "error": {
    "code": "not_valid",
    "message": "Data validation error",
    "data": {
      "param": "must be an string"
    }
  }
}
{
  "error": {
    "code": "invalid_authentication",
    "message": "Log In"
  }
}