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

# Edit fields of a fiber production process

`PATCH /api/admin/fiber/production-processes/{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-processes/{id}`
- Auth: none declared

Edits the sent fields of a production process the caller's company owns — `name`, `productCategoryId`, `facilityProcessId`, `facilityWastageFactorPercentage` (0 to 99.99) and `featuredImageFileId` (`null` clears it). At least one is required; a key left out keeps its stored value (legacy also kept it for a `0` wastage or a `null` image). The wastage band is re-read for the resulting category and facility process, falling back to the category's parent: a wastage below its minimum answers 409 `invalid_wastage_factor`, a changed pair without a production factor 400 `missing_production_factor`, and an unchanged pair whose factor is gone keeps its stored band (legacy wiped it). A changed facility process is now stored (legacy dropped it). Responds with the process in the `{ data, metadata }` envelope (legacy answered the bare record). 404 `not_found` for an unknown id or another company's process (legacy answered 200 and wrote nothing for another company's global template).

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `featuredImageFileId` string, nullable
  - `productCategoryId` string
  - `facilityWastageFactorPercentage` number
  - `facilityProcessId` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `name` string, required
    - `isGlobal` number, nullable, required
    - `facilityProcessId` string, nullable, required
    - `productCategoryId` string, nullable, required
    - `productCategoryName` string, nullable, required
    - `facilityWastageFactorPercentage` number, nullable, required
    - `minWastageFactorRangePercentage` number, nullable, required
    - `maxWastageFactorRangePercentage` number, nullable, required
    - `featuredImageFileId` string, nullable, required
    - `featuredImageFileUrl` string, nullable, required
    - `originalFeaturedImageFileUrl` string, nullable, required
    - `featuredImageFileContentType` string, nullable, required
    - `featuredImageFileType` string, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `updatedByUserName` string, nullable, required
    - `updatedByCompanyName` string, 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-processes/: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)
