State Controller

Update state

Update a state by its ID

patch/states/{id}

Path parameters

idnumber required

Request body

countryIdnumber

ID of the country this state belongs to

stateNamestring

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 updated successfully

Changes

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