Address

Изменение улицы

StreetController ( privileges: Global: SYSTEM, ADMIN)

patch/cities/{city}/streets/{street}

Request

  • Base URL
    https://dev.curog.ru/api
  • URL
    https://dev.curog.ru/api/cities/{city}/streets/{street}
  • Auth
    API key in header Authorization

Path parameters

номер ресурса населенного пункта

номер ресурса просматриваемой улицы

Request body

namestring required

полное наименование улицы.

fiasstring

ФИАС улицы.

streetTypeIdinteger required

тип улицы. Берем из таблицы street_types

Example request

{
  "name": "Озерная",
  "fias": "92082bf1-40e5-41a0-9304-e3bf74c24e7b"
}

Response

Oк

idinteger
shortTypestring
namestring
fiasstring
user_fiostring
streetTypeIdinteger

Example response

{
  "id": 1,
  "shortType": "ул.",
  "name": "Оборонная",
  "fias": "92082bf1-40e5-41a0-9304-e3bf74c24e7b",
  "user_fio": "Иванов Иван Иванович",
  "streetTypeId": 1,
  "city": {
    "id": 1,
    "name": "Хабаровск",
    "regionName": "Хабаровский край",
    "regionShortName": "ЕАО ",
    "outsideId": 2,
    "outsideName": "Хабаровский р-он",
    "typeId": 1,
    "typeName": "город",
    "typeShortName": "г.",
    "okato": "08 224",
    "oktmo": "08 624",
    "fias": "9f905365-dbef-425a-9724-3db4e18dc7d9"
  }
}

Changes

No recorded changes to this operation across all 16 revisions of this API.