# Create inventory requirement

Creates a new Inventory Requirement record. Inventory Requirement resource in the Animal Health Data Store

Endpoint: POST /site/{siteId}/ahds/v1/inventory-requirement
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

## Request fields (application/json):

  - `availableQuantity` (number)
    Current available quantity of the product at the specified location.
    Example: 1.23

  - `extensions` (object)
    Vendor- or practice-specific extensions to the inventory requirement.

  - `inventoryRequirementId` (string)
    Canonical identifier for this inventory requirement record.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `locationId` (string)
    Identifier of the location (e.g., clinic, warehouse) where this requirement applies.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `minimumQuantity` (number)
    Minimum quantity threshold at which the product should be reordered.
    Example: 1.23

  - `productCode` (string)
    Practice-specific product code or SKU.
    Example: CODE-001

  - `productDisplay` (string)
    Human-readable name of the product for display purposes.
    Example: Example Name

  - `productId` (string, required)
    Identifier of the product this inventory requirement applies to.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `requiredQuantity` (number)
    Target quantity to have on hand at the specified location.
    Example: 1.23

## Response 201:

  - `201` (unknown)
    Inventory Requirement created successfully

## Response 201 fields (application/json):

  - `availableQuantity` (number, required)
    Current available quantity of the product at the specified location.
    Example: 1.23

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

  - `extensions` (object, required)
    Vendor- or practice-specific extensions to the inventory requirement.

  - `inventoryRequirementId` (string, required)
    Canonical identifier for this inventory requirement record.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `locationId` (string, required)
    Identifier of the location (e.g., clinic, warehouse) where this requirement applies.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `minimumQuantity` (number, required)
    Minimum quantity threshold at which the product should be reordered.
    Example: 1.23

  - `productCode` (string, required)
    Practice-specific product code or SKU.
    Example: CODE-001

  - `productDisplay` (string, required)
    Human-readable name of the product for display purposes.
    Example: Example Name

  - `productId` (string, required)
    Identifier of the product this inventory requirement applies to.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `requiredQuantity` (number, required)
    Target quantity to have on hand at the specified location.
    Example: 1.23

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

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 409:

  - `409` (unknown)
    Inventory Requirement with this ID already exists

