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 required
Device should try to connect to Management server
- protocol string required
Possible 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 requiredServer address
password string requiredPassword for server authentication
is_logging_enabled boolean requiredShould device send logs to server or not
is_encrypted boolean requiredIf enabled you can provide custom certificate with
POST /network/management/settings/certificate
or device will use default one.url ipv4 or dns requiredServer address
password string requiredPassword for server authentication
is_logging_enabled boolean requiredShould device send logs to server or not
is_heartbeat_enabled boolean requiredIf 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 stringPossible values: [
invalid_authentication
,permission_denied
,not_valid
,system_error
]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringDescribes the parameter that did not pass a validation
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be a string"
}
}
}
Please log in
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Describes the base error user might get
code stringPossible values: [
invalid_authentication
,permission_denied
,not_valid
,system_error
]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringDescribes the parameter that did not pass a validation
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be a string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Log In"
}
}