v1

latestOpenAPI 3.0.02026-07-1719430.3 KB
District

Update district with ID

put/api/district/{id}

Path parameters

idinteger required
Example:1

Request body

city_idinteger

ID of the city

namestring

Name of the District

ibge_codeinteger

IBGE code of the district

Example request

{
  "city_id": 1,
  "name": "São Miguel",
  "ibge_code": 12345
}

Response

Success

idinteger

District ID

city_idinteger

City ID

namestring

District name

ibge_codestring

IBGE code

created_atstring

Creation date

updated_atstring

Update date

Example response

{
  "id": 1,
  "city_id": 1,
  "name": "São Miguel",
  "created_at": "2022-01-01 00:00:00",
  "updated_at": "2022-01-01 00:00:00"
}