Register a bin, or converge an existing bin to a capacity
PUT/bins/:binId
Declarative, idempotent bin registration by inventory control (ADR 0025). The body states the desired capacity and the bin converges to it. An absent bin is created empty (201). A present bin with the same capacity is left untouched (200, nothing written). A present bin with a different capacity is resized (200), as long as the new capacity is not below what the bin already holds — shrinking below occupancy is rejected (409 capacity-below-occupancy) because that stock is physically in the slot. Occupancy is never changed by this call; it moves only through stow and pick. A resize racing a concurrent stow can surface as 409 concurrent-modification (re-fetch and retry).
Request
Responses
- 200
- 201
- 400
- 409
- 422
- 500
The bin already existed; it is now at the requested capacity (unchanged, or resized).
The bin did not exist and was created, empty.
Response Headers
Path of the registered bin.
Malformed JSON body, or the body omits capacity.
The requested capacity is below the bin's current occupancy, or the bin was concurrently modified (re-fetch and retry).
capacity is zero, negative, or above the int32 range.
An unexpected internal error occurred.