# Update product minimum stock

Partially updates an existing Product Minimum Stock. Only provided fields will be updated.

Endpoint: PATCH /site/{siteId}/ahds/v1/product-minimum-stock/{productMinimumStockId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `productMinimumStockId` (string, required)
    Product Minimum Stock unique identifier (UUID)

## Request fields (application/json):

  - `effectiveEndDate` (string)
    Calendar date when this minimum stock configuration stops being effective, if seasonally constrained.
    Example: 2025-01-01

  - `effectiveStartDate` (string)
    Calendar date when this minimum stock configuration becomes effective, if seasonally constrained.
    Example: 2025-01-01

  - `extensions` (object)
    Vendor- or practice-specific extensions.

  - `isActive` (boolean)
    Whether this minimum stock configuration is currently active.
    Example: true

  - `locationOwnershipId` (string)
    Identifier for the location/ownership context this minimum stock applies to (e.g., clinic location or inventory owner).
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `minimumStockQuantity` (object)
    The minimum level of stock allowed before a purchase order is required.

  - `minimumStockQuantity.value` (number, required)
    Numeric value
    Example: 1.5

  - `minimumStockQuantity.unit` (string, required)
    Unit of measure
    Example: km

  - `minimumStockQuantity.system` (string)
    Unit system URI
    Example: http://unitsofmeasure.org

  - `productId` (string)
    Reference to the product this minimum stock configuration applies to.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `reorderQuantityExpression` (string)
    Expression or value used to calculate reorder quantity, interpreted in conjunction with shouldReorderToMaxLevel and current quantity on hand.
    Example: example

  - `shouldReorderToMaxLevel` (boolean)
    If true, reorder so that quantity on hand reaches the target maximum level; if false, reorder at least the suggested quantity.
    Example: true

## Response 200:

  - `200` (unknown)
    Product Minimum Stock updated successfully

## Response 200 fields (application/json):

  - `createdAt` (string, required)
    Timestamp when this record was created.
    Example: 2025-01-01T00:00:00.000Z

  - `effectiveEndDate` (string, required)
    Calendar date when this minimum stock configuration stops being effective, if seasonally constrained.
    Example: 2025-01-01T00:00:00Z

  - `effectiveStartDate` (string, required)
    Calendar date when this minimum stock configuration becomes effective, if seasonally constrained.
    Example: 2025-01-01T00:00:00Z

  - `extensions` (object, required)
    Vendor- or practice-specific extensions.

  - `isActive` (boolean, required)
    Whether this minimum stock configuration is currently active.
    Example: true

  - `locationOwnershipId` (string, required)
    Identifier for the location/ownership context this minimum stock applies to (e.g., clinic location or inventory owner).
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `minimumStockQuantity` (object, required)
    The minimum level of stock allowed before a purchase order is required.

  - `minimumStockQuantity.value` (number, required)
    Numeric value
    Example: 1.5

  - `minimumStockQuantity.unit` (string, required)
    Unit of measure
    Example: km

  - `minimumStockQuantity.system` (string)
    Unit system URI
    Example: http://unitsofmeasure.org

  - `productId` (string, required)
    Reference to the product this minimum stock configuration applies to.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `productMinimumStockId` (string, required)
    Canonical identifier for this product minimum stock configuration.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `reorderQuantityExpression` (string, required)
    Expression or value used to calculate reorder quantity, interpreted in conjunction with shouldReorderToMaxLevel and current quantity on hand.
    Example: example

  - `shouldReorderToMaxLevel` (boolean, required)
    If true, reorder so that quantity on hand reaches the target maximum level; if false, reorder at least the suggested quantity.
    Example: true

  - `updatedAt` (string, required)
    Timestamp when this record was last updated.
    Example: 2025-01-01T00:00:00.000Z

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Product Minimum Stock not found

