> ## 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 production batches

> Create a production batches

### Request body

`CreateProductionBatchRequest`

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

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

<ParamField body="work_order_ids" type="string[]" />

### Responses

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

<ResponseField name="400" type="ErrorBody" />

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

<ResponseExample>
  ```json 201 theme={null}
  {
    "created_at": "string",
    "id": "string",
    "name": "string",
    "status": "string",
    "work_order_ids": [
      "string"
    ]
  }
  ```
</ResponseExample>
