v1

latestOpenAPI 3.0.02026-07-1719430.3 KB
City

Update city with ID

put/api/city/{id}

Path parameters

idinteger required
Example:1

Request body

state_idinteger

ID of the state

namestring

Name of the City

ibge_codeinteger

IBGE code of the city

Example request

{
  "state_id": 1,
  "name": "Francisco Beltrão",
  "ibge_code": 12345
}

Response

Success

idinteger

City ID

state_idinteger

State ID

namestring

City name

ibge_codestring

IBGE code

created_atstring

Creation date

updated_atstring

Update date

Example response

{
  "id": 1,
  "state_id": 1,
  "name": "Francisco Beltrão",
  "created_at": "2022-01-01 00:00:00",
  "updated_at": "2022-01-01 00:00:00"
}