Address

Изменение данных квартире

FlatController ( privileges: Global: SYSTEM, ADMIN, AllUsers )

patch/home_streets/{home_street}/flats/{flat}

Path parameters

номер ресурса номера дома(адрес)

номер ресурса квартиры

Request body

Example request

{
  "data": {
    "id": 1,
    "num": "25",
    "floor": 5,
    "square": 120.5,
    "residential": true,
    "endDate": "2025-05-01",
    "addressId": 3,
    "entranceId": 2,
    "entranceNumber": "за углом",
    "cityId": 2,
    "cityName": "Хэйхэ",
    "cityPrefixName": "пгт.",
    "streetId": 33,
    "streetName": "Красная",
    "streetPrefixName": "ул.",
    "homeNumber": "16",
    "homeCorp": "A",
    "homeFrame": "строение 5",
    "owners": [
      {
        "id": 1,
        "flat_id": 1,
        "first_name": "Иван",
        "patronymic_name": "Иванович",
        "last_name": "Иванов",
        "start_date": "2020-01-01"
      }
    ],
    "emails": [
      {
        "id": 45,
        "email": "curog@mail.ru",
        "flatId": 345
      }
    ]
  }
}

Response

Example response

{
  "data": {
    "id": 1,
    "num": "25",
    "floor": 5,
    "square": 120.5,
    "residential": true,
    "endDate": "2025-05-01",
    "addressId": 3,
    "entranceId": 2,
    "entranceNumber": "за углом",
    "cityId": 2,
    "cityName": "Хэйхэ",
    "cityPrefixName": "пгт.",
    "streetId": 33,
    "streetName": "Красная",
    "streetPrefixName": "ул.",
    "homeNumber": "16",
    "homeCorp": "A",
    "homeFrame": "строение 5",
    "owners": [
      {
        "id": 1,
        "flat_id": 1,
        "first_name": "Иван",
        "patronymic_name": "Иванович",
        "last_name": "Иванов",
        "start_date": "2020-01-01"
      }
    ],
    "emails": [
      {
        "id": 45,
        "email": "curog@mail.ru",
        "flatId": 345
      }
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.