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.
{
"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 |
|
Changes accepted; delivery to the panel scheduled JSON
|
|
404 |
|
Intercom not found or apartment belongs to another intercom |
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|