> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a class

> Create a class

### Request body

`CreateUnitClassRequest`

<ParamField body="description" type="string,null" />

<ParamField body="name" type="string" required />

### Responses

<ResponseField name="201" type="UnitClassResponse" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/unit-classes' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "description": null,
    "name": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "base_uom_id": null,
    "id": "string",
    "name": "string"
  }
  ```
</ResponseExample>
