Skip to main content
PUT
Update state

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Path Parameters

id
integer
required

The state ID

Example:

1

Body

application/json
name
string

State/Province name. Must not be greater than 255 characters.

Example:

"California"

code
string | null

State/Province code. Must not be greater than 50 characters.

Example:

"CA"

country_id
string

Country ID. The id of an existing record in the countries table.

Example:

233

Response

Success