---
title: "Creates a new bill of materials operation for a bill of materials, including its items."
method: POST
path: "/v2/bills-of-materials/{billOfMaterialsId}/bill-of-materials-operations/create"
tags: ["CreateCommand"]
---

# Creates a new bill of materials operation for a bill of materials, including its items.

`POST /v2/bills-of-materials/{billOfMaterialsId}/bill-of-materials-operations/create`

## Request

- Base URL: `https://scx-sbx.api.jtl-software.com`
- URL: `https://scx-sbx.api.jtl-software.com/v2/bills-of-materials/{billOfMaterialsId}/bill-of-materials-operations/create`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://auth.jtl-cloud.com/oauth2/auth`
    - Token URL: `https://auth.jtl-cloud.com/oauth2/token` scopes: `pps.write`
  - OAuth 2
    - Client credentials
    - Token URL: `https://auth.jtl-cloud.com/oauth2/token` scopes: `pps.write`

## Path parameters

- `billOfMaterialsId` string, uuid, required

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLPPSProductionItemsPublicApiDataTransferObjectsV2CreateCreateBillOfMaterialsOperationCommandRequest: Creates a new bill of materials operation for a bill of materials, including its items. - Request
  - `productionItemId` string, uuid: Der Schlüssel eines Produktionsartikels.
  - `billOfMaterialsId` string, uuid
  - `input` JTLPPSProductionItemsPublicApiDataTransferObjectsV2CreateCreateBillOfMaterialsOperationInput: Represents the input for creating a bill of materials operation as part of a new bill of materials.
    - `operationId` string, uuid
    - `items` JTLPPSProductionItemsPublicApiDataTransferObjectsV2CreateCreateBillOfMaterialsItemInput[]: The bill of materials items assigned to this operation. Optional per individual operation, but at least one component must be present across all operations within the bill of materials.
      - `itemId` string, uuid
      - `quantity` number: The required quantity of this component for the production of the production item. Must be greater than zero.
      - `measurementUnitId` string, uuid
      - `componentPostingsShelfLifeEndDateRequirements` 0 | 1 | 2: 0 = Inherited, 1 = None, 2 = Identical
      - `componentPostingsBatchNumberRequirements` 0 | 1 | 2: 0 = Inherited, 1 = None, 2 = Identical

## Response `201`

Successfully created a bill of materials operation.

---

[API](https://skmtc.dev/jtl-software/apis/scx-authentication-api.md) - [All operations](https://skmtc.dev/jtl-software/apis/scx-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jtl-software/apis/scx-authentication-api/revisions/f979b1ea6951?raw)
