# Bulk upsert BOM items (replace all) (/docs/api-reference/products/ProductsController_bulkUpsertBomItems)

`PUT /api/factories/{factoryId}/products/{productId}/bom`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory ID |
| `productId` | path | yes | string | Product ID |

## Responses

### 200: BOM items saved