v1

latestOpenAPI 3.0.02026-07-1719430.3 KB
State

Update state with ID

put/api/state/{id}

Path parameters

idinteger required
Example:1

Request body

country_idinteger

ID of the country

namestring

Name of the State

abbreviationstring

Abbreviation of the State

ibge_codeinteger

IBGE code of the state

Example request

{
  "country_id": 1,
  "name": "Paraná",
  "abbreviation": "PR",
  "ibge_code": 12345
}

Response

Success

idinteger

State ID

country_idinteger

Country ID

namestring

State name

abbreviationstring

Name Abbreviation

ibge_codestring

IBGE code

created_atstring

Creation date

updated_atstring

Update date

Example response

{
  "id": 1,
  "country_id": 1,
  "name": "Paraná",
  "abbreviation": "PR",
  "created_at": "2022-01-01 00:00:00",
  "updated_at": "2022-01-01 00:00:00"
}