Address

Создание элемента тип населенного пункта

CityTypeController ( privileges: Global: SYSTEM, ADMIN)

post/city_types

Request

  • Base URL
    https://dev.curog.ru/api
  • URL
    https://dev.curog.ru/api/city_types
  • Auth
    API key in header Authorization

Request body

namestring required

Наименование типа населенного пункта

shortNamestring required

краткое наименование типа нас.пункта, согласно КЛАДР

Example request

{
  "name": "село",
  "shortName": "с."
}

Response

Oк

idinteger
shortNamestring

сокращенное (по КЛАДРу) наименование нас.пункта с точкой в конце, если надо

namestring

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

Example response

{
  "id": 1,
  "shortName": "с.",
  "name": "село"
}

Changes

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