Skip to main content
Skip table of contents

Updаte the configuration: Server.Reload

The method and parameters

Данный метод Server.Reload позволяет применить некритические изменения в конфигурации сервиса. Сервис перечитывает конфигурационный файл, но захват и стримминг не прекращаются.

This Server.Reload method allows you to apply non-critical changes to the service configuration. The service rereads the configuration file, while capture and streaming don’t stop.

string Server.Reload (string reason, string who)

The parameters

string reason REQUIRED – the reason for service restart. A logging message will be added.


string who REQUIRED – who requests the relaod.

POST /api/

JSON-RPC
JSON
{
    "jsonrpc": "2.0",
    "method": "Server.Reload",
    "params": {
        "reason": "string",
        "who": "string"
    },
    "id": 1
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/' \
	--header 'Content-Length: 143' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--header 'Authorization: Bearer <api-authorization-token>' \
	--header 'Content-Length: <data length>' \
	--data '{
    "jsonrpc": "2.0",
    "method": "Server.Reload",
    "params": {
        "reason": "string",
        "who": "string"
    },
    "id": 1
}'
PHP
PHP
$data = array (
  'jsonrpc' => '2.0',
  'method' => 'Server.Reload',
  'params' => 
  array (
    'reason' => 'string',
    'who' => 'string',
  ),
  'id' => 1,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json\r
Authorization: Bearer <api-authorization-token>\r
Content-Length: <data length>",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/', false, $context);

200 OK

bool – the operation execution result.

JSON
true

400 Bad Request

The JSON-RPC error

JSON
{
    "error": {
        "code": -32601,
        "message": "Method not found"
    }
}

500 Internal Server Error

The server error

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.