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

# CreateProductionItem

> Creates a new production item, including its bills of materials with their components.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `CreateProductionItem(request: CreateProductionItemCommandRequestInput!): CreateProductionItemCommandResponse!`

## Arguments

**`request`**: `CreateProductionItemCommandRequestInput!` (required)

## Returns

`CreateProductionItemCommandResponse!`

**`id`**: `ID!`

The ID of the newly created production item.

## Examples

```graphql Mutation
mutation CreateProductionItem($request: CreateProductionItemCommandRequestInput!) {
  CreateProductionItem(request: $request) {
    id
  }
}
```

```json Variables
{
  "request": {
    "input": {
      "itemId": "id",
      "isCustomized": true,
      "billsOfMaterials": [
        {
          "name": "string",
          "operations": [
            {
              "operationId": "id",
              "items": [
                {
                  "itemId": "id",
                  "quantity": "value"
                }
              ]
            }
          ]
        }
      ],
      "lotSizes": [
        {
          "lotSize": 1
        }
      ]
    }
  }
}
```

```json Response
{
  "data": {
    "CreateProductionItem": {
      "id": "id"
    }
  }
}
```
