26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Update apartment (v2)

Update an apartment (v2)

PATCH  /api/v2/billing/intercoms/{intercom}/flats/{flat}

With the release of request version v2, version v1 is being moved to legacy.
For new integrations, use the current v2.
Version v1 remains available to support existing integrations.

The platform saves the changes and responds with 202 before contacting the panel, then delivers them through a queue. Changes are not lost if the panel is unavailable. Delivery results are available in settings.status (settings) and delivery.status (call lines and apartment number) for the apartment.

Apartment settings depend on the manufacturer. Supported fields and limits are specified in flat_settings_spec in the "Intercom capabilities (v2)" response. For example, keys_access_enabled: false and codes_access_enabled: false prevent apartment access using keys and codes, such as in cases of nonpayment. Until settings.status becomes applied the requested value appears in settings.desired. A call line not supported by the panel (see flat_attributes) is skipped without an error.

JSON
{
    "keys_access_enabled": false,
    "is_smartphone_sip_line_available": true,
    "number": "1042"
}

Method parameters

int intercom  required , Intercom ID (in the URL)


int flat  required , Intercom apartment ID (in the URL)


boolean keys_access_enabled, Apartment access using keys, if this field is present in `flat_settings_spec`


boolean codes_access_enabled, Apartment access using codes, if this field is present in `flat_settings_spec`


boolean is_smartphone_sip_line_available, Whether calls to a smartphone are enabled. Disabling this blocks the channel; the user cannot reenable it in the app


boolean is_landline_sip_line_available, Whether calls to a landline are enabled. Disabling this blocks the channel; the user cannot reenable it in the app


boolean is_analog_line_available, Whether calls to an analog handset are enabled. Disabling this blocks the channel; the user cannot reenable it in the app


string number, Apartment SIP number, unique among apartments


string landline_number, Landline phone number, formatted for one of the countries allowed in platform settings

202  Accepted

Changes accepted; delivery to the panel scheduled

JSON
{
    "id": 501,
    "flat": 42,
    "number": "1042",
    "landline_number": null,
    "is_analog_line_available": true,
    "is_smartphone_sip_line_available": true,
    "is_landline_sip_line_available": false,
    "delivery": {
        "status": "applied",
        "error": null,
        "synced_at": "2026-11-04T10:15:00+00:00"
    },
    "settings": {
        "desired": {
            "keys_access_enabled": false
        },
        "actual": {
            "keys_access_enabled": true,
            "codes_access_enabled": true
        },
        "spec": {
            "keys_access_enabled": {
                "type": "boolean",
                "group": "access",
                "control": "toggle"
            },
            "codes_access_enabled": {
                "type": "boolean",
                "group": "access",
                "control": "toggle"
            }
        },
        "status": "pending",
        "error": null,
        "synced_at": null
    }
}

404  Not Found

Intercom not found or apartment belongs to another intercom

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 PATCH \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/flats/{flat}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0,
    "flat": 0,
    "keys_access_enabled": "boolean",
    "codes_access_enabled": "boolean",
    "is_smartphone_sip_line_available": "boolean",
    "is_landline_sip_line_available": "boolean",
    "is_analog_line_available": "boolean",
    "number": "string",
    "landline_number": "string"
}'
PHP
PHP
$data = array (
  'intercom' => 0,
  'flat' => 0,
  'keys_access_enabled' => 'boolean',
  'codes_access_enabled' => 'boolean',
  'is_smartphone_sip_line_available' => 'boolean',
  'is_landline_sip_line_available' => 'boolean',
  'is_analog_line_available' => 'boolean',
  'number' => 'string',
  'landline_number' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'PATCH',
		'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/{flat}', false, $context);