Skip to main content
POST

Authorizations

Authorization
string
header
required

Paste the JWT access token returned by the corresponding login endpoint.

Body

application/json

Body uses UpdateStockRequest. productId is validated as non-empty; nested stock settings are defined by the ProductStock interface. The handler expects productStock entries for SKU stock settings.

productId
integer
required
hasStock
integer
productStock
object[]

Response

Successful response. Illustrative response envelope only. This route inventory does not include its route-specific @apiSuccessExample; response fields and messages must be verified in the matching controller/service. The example is intended to show the common response-wrapper style, not to define a guaranteed response schema. Example is illustrative and does not guarantee a stable response contract.

status
integer
message
string
data
object