Create a new state in a given country.
| Permission | Description |
|---|---|
states.view_all | Access states |
states.create | Create state |
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the state (max 255) |
The country ID is provided in the route.
{
"data": { /* state resource */ }
}
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |