---
title: "Creates a new state"
method: POST
path: "/states"
tags: ["State"]
---

# Creates a new state

`POST /states`

Creates a new state

## Request body

- AddState
  - `name` string — Name of State.
  - `country_id` integer — Country id .
  - `state_code` string — State code of State.
  - `is_active` integer — Is active.

## Response `200`

New state added

- State
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `country_id` integer
  - `name` string
  - `slug` string
  - `state_code` string
  - `is_active` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/revisions/8db13a44d758/schema)
