Skip to main content

Update Product Units of Measure

PUT 

/api/manufacturing/products/:product/units-of-measure

Replace the product's full unit-of-measure configuration in one call. Exactly one row must be the stock unit with conversion_factor 1; at most one purchase unit and at most one sales unit are allowed. Auth: requires Bearer token. Path param: product = product id. Body: units_of_measure (required, array, min 1). Per row: uom_id (required, existing unit id); conversion_factor (required, numeric, greater than 0 - how many stock units one of this unit represents); display_precision (optional, integer 0-8); is_stock_uom / is_purchase_uom / is_sales_uom (optional booleans).

Required scope: manufacturing:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Request

Responses

OK

Response Headers
    Content-Type