State Controller

Create a new state

Create a new state for a country

post/states

Request body

countryIdnumber required

ID of the country this state belongs to

stateNamestring required

State name

externalLinkstring nullable

External domain URL for this state

isActiveboolean

Whether the state is active

Example request

{
  "countryId": 1,
  "stateName": "California",
  "externalLink": "example.com",
  "isActive": true
}

Response

State created successfully

Changes

No recorded changes to this endpoint across all 1 revision of this API.