---
title: "Create fiber production factors"
method: POST
path: "/api/admin/fiber/production-factors"
tags: ["Administration/Fiber"]
---

# Create fiber production factors

`POST /api/admin/fiber/production-factors`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/admin/fiber/production-factors`
- Auth: none declared

Creates one production factor per facility process in `facilityProcessIds` (at least one; duplicates are dropped), all for `productCategoryId` and with the optional `minWastageFactorPercentage` and `maxWastageFactorPercentage` (0 to 99.99; one left out stores none). The expected fiber loss is the midpoint of the bounds, or `null` without both (legacy stored `NaN`). An unknown category answers 404 `product_category_not_found`, a minimum above the maximum 409 `invalid_wastage_factor_range`, and a facility process that already has a factor for the category 409 `production_factor_exists` with none created (legacy answered 500). Responds 201 with the new factors in the order sent, in the `{ data, metadata }` envelope (legacy answered a bare array).

## Request body

- object
  - `facilityProcessIds` string[], required
  - `productCategoryId` string, required
  - `minWastageFactorPercentage` number
  - `maxWastageFactorPercentage` number

## Response `201`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` object[], required
    - `id` string, required
    - `facilityProcessId` string, required
    - `facilityProcessName` string, nullable, required
    - `productionProcessName` string, nullable, required
    - `productionProcessIconBackgroundColor` string, nullable, required
    - `productCategoryId` string, required
    - `productCategoryName` string, nullable, required
    - `parentProductCategoryId` string, nullable, required
    - `parentProductCategoryName` string, nullable, required
    - `minWastageFactorPercentage` number, nullable, required
    - `maxWastageFactorPercentage` number, nullable, required
    - `expectedFiberLossPercentage` number, nullable, required
    - `updatedAt` string, date-time, nullable, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `409`: Default Response

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-17** `da033c4e6365`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/admin/fiber/production-factors/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) - [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
