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
- protocol string required
Possible values: [
http
,mqtt
] settings object required
oneOf- MOD1
- MOD2
url ipv4 or dnsServer address
password stringis_encrypted booleanIf enabled you can provide custom sertificate with
POST /network/management/settings/certificate
or device will use default one.url ipv4 or dns requiredServer address
password stringis_heartbeat_enabled booleanIf enabled device will send keep alive request every 10 seconds
Responses
- 200
- 400
- 401
OK
Validation error.
- Wrong url
- Wrong password
- Missed json body
- Wrong protocol
- Required field is not provided. Response sample:
"error": "Wrong JSON body: no value for `param`"
where param
- is a required field that was not provided
- Field was of the wrong type. Response sample:
"error": "Wrong JSON body: value `param` was of the wrong type"
where param
- is a field of the wrong type
- application/json
- Schema
- Example (from schema)
- Wrong url
- Wrong password
- Wrong protocol
- Base
- No value
- Wrong param type
Schema
- error string
{
"error": true
}
{
"error": "Wrong url"
}
{
"error": "Wrong password"
}
{
"error": "Wrong protocol"
}
{
"error": "Missed json body"
}
{
"error": "Wrong JSON body: no value for `param`"
}
{
"error": "Wrong JSON body: value `param` was of the wrong type"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...