Stocks/Articles/{article}/Warehouses/{warehouse}
Update article warehouse configuration
Updates stock configuration for a specific article-warehouse pair. Supports partial update of min/max stock, replenishment quantity, supplier, and location.
AuthorizationBearer <token>
In: header
Path Parameters
articlestring
warehousestring
min_stock?number
Minimum stock quantity for this warehouse
Range
0 <= valuemax_stock?number
Maximum stock quantity for this warehouse
Range
0 <= valuereplenishment_qty?number
Replenishment quantity threshold
Range
0 <= valuesupplier_id?integer | null
Supplier ID (must exist in suppliers table)
location?string | null
Physical location within the warehouse
Length
length <= 255Response Body
curl -X PATCH "https://og-tenant1.test:8003/api/v2/stocks/articles/string/warehouses/string" \
-H "Content-Type: application/json" \
-d '{}'Empty
{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}