Administration/Fiber

Edit fields of a fiber production process

Changed on

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).

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

Path parameters

idstring required

Request body

namestring
featuredImageFileIdstring nullable
productCategoryIdstring
facilityWastageFactorPercentagenumber
facilityProcessIdstring

Response

Default Response

Changes