Reassign Coverage
POST//:domain/api/v2/inventory-allocations/:allocation/reassign-coverage
Manually (re)assigns a single allocation's PO-line coverage. Binding a PO line transitions the allocation to AwaitingReceipt and pins it as tight coverage (so a later automatic rebalance won't move it).
Body:
purchase_order_line_id(required, nullable integer) — the PO line to cover this allocation with. Passnullto clear coverage and revert the allocation toPlanned.
Returns 422 when the PO line belongs to a different product, or the PO is draft/closed/cancelled/voided, or the line is already fully received.
Request
Responses
- 200
- 422
OK
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type