Address

Создание стояка

Changed on

Pipes/PipeController ( privileges: Pipe - C1 )

post/homes/{home_id}/pipes

Request

  • Base URL
    https://dev.curog.ru/api
  • URL
    https://dev.curog.ru/api/homes/{home_id}/pipes
  • Auth
    API key in header Authorization

Path parameters

Идентификатор дома

Headers

организация от имени которой зашел пользователь (firm_users.id)

Request body

Example request

{
  "data": {
    "homeId": 45,
    "id": 5,
    "nom": "г1",
    "utilityId": 3,
    "utilityName": "Горячее водоснабжение",
    "note": "Сдвоен с 2",
    "flats": [
      {
        "id": 1,
        "num": "25",
        "floor": 5,
        "addressId": 3,
        "entranceId": 2,
        "homeId": 2,
        "entranceNumber": 3
      }
    ]
  }
}

Response

Oк

Example response

{
  "data": {
    "homeId": 45,
    "id": 5,
    "nom": "г1",
    "utilityId": 3,
    "utilityName": "Горячее водоснабжение",
    "note": "Сдвоен с 2",
    "flats": [
      {
        "id": 1,
        "num": "25",
        "floor": 5,
        "addressId": 3,
        "entranceId": 2,
        "homeId": 2,
        "entranceNumber": 3
      }
    ]
  }
}

Changes

    • info

      added the optional property /// to the response with the status

    • breaking

      the / request property type changed from object to array

    • breaking

      the / response's property type changed from object to array for status

    • warning

      removed the request property //

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status