The method and parameters
|
PATCH /api/v1/billing/intercom-flats |
The intercom can be specified by intercom_id. The flat can be specified by flat or flat_id.
An example of the request body:
JSON
{
"intercom_id": 1,
"flat": 10,
"is_smartphone_sip_line_available": true,
"is_landline_sip_line_available": true,
"is_analog_line_available": false
}
int intercom_id – the intercom ID.
int flat – the flat number (mutually exclusive with flat_id)
int flat_id – intercom flat record ID (mutually exclusive with flat)
bool is_smartphone_sip_line_available –availability of smartphone SIP line
bool is_landline_sip_line_available –availability of the landline SIP line.
bool is_analog_line_available – availability of analog line.
|
200 |
|
A successful response with the updated flat parameters JSON
|
|
422 |
|
Returns a JSON object with an error. For details, see General information/External system validation. JSON
|