---
title: "Edit fields of a fiber production factor"
method: PATCH
path: "/api/admin/fiber/production-factors/{id}"
tags: ["Administration/Fiber"]
---

# Edit fields of a fiber production factor

`PATCH /api/admin/fiber/production-factors/{id}`

## 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/{id}`
- Auth: none declared

Edits the sent fields of a production factor — `facilityProcessId`, `productCategoryId`, `minWastageFactorPercentage` and `maxWastageFactorPercentage` (0 to 99.99). At least one is required; a key left out keeps its stored value (legacy also kept it for a `0`). `expectedFiberLossPercentage` is derived as the midpoint of the bounds, or `null` without both. An unknown `productCategoryId` answers 404 `product_category_not_found`, a minimum above the maximum 409 `invalid_wastage_factor_range`, and moving the factor onto a pair that already has one 409 `production_factor_exists` (legacy answered 500). Responds with the factor, its names and its parent category, in the `{ data, metadata }` envelope (legacy answered the bare record). 404 `not_found` for an unknown id.

## Path parameters

- `id` string, required

## Request body

- object
  - `facilityProcessId` string
  - `productCategoryId` string
  - `minWastageFactorPercentage` number
  - `maxWastageFactorPercentage` number

## Response `200`

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/:id/patch.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)
