Skip to main content
POST
Create state

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

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

Example:

"California"

country_id
string
required

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

Example:

233

code
string | null

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

Example:

"CA"

Response

Created