Skip to main content

Upsert MPS Entry

PUT 

/api/manufacturing/mrp/mps

Create or update one MPS entry keyed on (product_id, warehouse_id, bucket_start). Auth: requires Bearer token. FormRequest: UpsertMpsEntryRequest. Fields: product_id (required, exists:products), warehouse_id (required, exists:warehouses), bucket_start (required, date), quantity (required, numeric, min:0), source (sometimes, in: manual, forecast, drp; defaults manual).

Required scope: mrp:run|manufacturing:write

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

Optional id (integer): an existing entry of the same product to update in place (it may move to the submitted warehouse or bucket) instead of creating a new entry. An id of another product's entry is a 422.

Request​

Responses​

OK

Response Headers
    Content-Type