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
enable/disable connection to external management server
- protocol string required
Possible values: [
http
,mqtt
]Which connection protocol will be used MQTT/HTTP
settings object required
This attribute is used to describe all needed settings for the connection to the management server depending on the protocol used
oneOf- MOD1
- MOD2
url ipv4 or dns requiredServer address
password string requiredpassword on the server needs to match password on the device for it to be able to connect
is_logging_enabled boolean requiredIf enabled device will send realtime logs to the server
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 on the server needs to match password on the device for it to be able to connect
is_logging_enabled boolean requiredIf enabled device will send realtime logs to the server
is_heartbeat_enabled boolean requiredIf enabled device will send keep alive request every 10 seconds
- 200
- 400
- 401
OK
Validation error.
- Wrong url
- Missed json body
- Wrong protocol
- Wrong parameter type
- Required field is not provided.
- application/json
- Schema
- Example (from schema)
- Wrong url
- Wrong protocol
- No value
- Wrong param type
Schema
error object
object containing info about error
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 stringextended info on error
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"settings.url": [
"not valid"
]
}
}
}
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"protocol": [
"not valid"
]
}
}
}
{
"error": {
"code": "not_valid",
"message": "Wrong JSON body",
"data": {
"protocol": [
"Required parameter missed"
]
}
}
}
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"is_enabled": [
"must be a boolean"
]
}
}
}
Please log in
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
object containing info about error
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 stringextended info on error
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Log In"
}
}