26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Get general apartment settings (v2)

Get general apartment settings (v2)

GET  /api/v2/billing/intercoms/{intercom}/flats-settings

Reads general apartment settings directly from the panel (a device request) and returns only fields available for the panel's call lines. Supported fields and limits are specified in batch_settings_spec in the "Intercom capabilities (v2)" response. If the panel does not respond, returns 422 with the key error.

Method parameters

int intercom  required , Intercom ID (in the URL)

200  OK

Successful response: object {field: value}

JSON
{
    "main_speaker_volume": 5
}

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 GET \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/flats-settings' \
	--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' => 'GET',
		'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}/flats-settings', false, $context);