Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/admin/states/{country}

Create a new state in a given country.


Permissions

PermissionDescription
states.view_allAccess states
states.createCreate state

Request Body Parameters

NameTypeRequiredDescription
namestringYesName of the state (max 255)

The country ID is provided in the route.


Response

200 OK

{
  "data": { /* state resource */ }
}

Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub