OfficeGest
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.

PATCH
/stocks/articles/{article}/warehouses/{warehouse}
AuthorizationBearer <token>

In: header

Path Parameters

articlestring
warehousestring
min_stock?number

Minimum stock quantity for this warehouse

Range0 <= value
max_stock?number

Maximum stock quantity for this warehouse

Range0 <= value
replenishment_qty?number

Replenishment quantity threshold

Range0 <= value
supplier_id?integer | null

Supplier ID (must exist in suppliers table)

location?string | null

Physical location within the warehouse

Lengthlength <= 255

Response 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"
  }
}