26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Restart an intercom (v2)

Restart an intercom (v2)

POST  /api/v2/billing/intercoms/{intercom}/restart

Restarts the panel and waits for its response: 204 means the panel confirmed the command; 202 with request_id means the command was accepted but not yet confirmed; 422 means the panel rejected the command, is unavailable, or does not support restarting (capability reboot).

int intercom  required , Intercom ID (in the URL)

204  No Content

Panel confirmed the command

202  Accepted

Command accepted; panel confirmation is still pending

JSON
{
    "request_id": "9b2f6c1e-3c1a-4d5e-8f7a-1b2c3d4e5f60"
}

404  Not Found

Intercom not found

422  Unprocessable Entity

Returns a JSON error object. For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/restart' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0
}'
PHP
PHP
$data = array (
  'intercom' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v2/billing/intercoms/{intercom}/restart', false, $context);