Skip to main content

Update Distribution Edge

PUT 

/api/manufacturing/mrp/distribution-network/:distributionNetwork

Update an existing edge (acyclic-graph check re-runs on endpoint changes). Same FormRequest as create - source/destination remain required. Auth: requires Bearer token. Path param: distributionNetwork = edge id. Fields: source_warehouse_id (required, exists:warehouses), destination_warehouse_id (required, exists:warehouses, different:source), transfer_lead_time_days (nullable, integer, min:0), priority (nullable, integer). A null transfer_lead_time_days or priority is coerced to 0 before validation, so a blank field behaves as the UI's own hint promises ("Leave blank for 0"). Both columns are NOT NULL DEFAULT 0, and a column default does not apply to an explicitly-supplied null — without the coercion a null was rejected by the database rather than defaulted. Only a key that is actually sent is coerced: omit the key on an update and the stored value is left alone, so a partial update cannot silently reset a route's priority.

Required scope: mrp:run|manufacturing:write

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

Request​

Responses​

OK

Response Headers
    Content-Type