# Create with primary inventory location Creates a new With Primary Inventory Location record. With Primary Inventory Location resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/with-primary-inventory-location Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `childSeparationId` (string) Identifier of the child separation, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `contactId` (string) Identifier of the associated contact entity, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `extensions` (object) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether this separation is currently active. - `name` (string, required) Human-readable name of the separation (e.g., clinic or department name). - `parentSeparationId` (string) Identifier of the parent separation, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `primaryInventoryLocationId` (string) Identifier of the primary inventory location associated with this separation. Example: "123e4567-e89b-12d3-a456-426614174000" - `separationCategory` (string) High-level category of the separation (e.g., division, department). Enum: "division", "department", "location", "other" - `separationId` (string, required) Canonical identifier for the separation (e.g., division, department). Example: "123e4567-e89b-12d3-a456-426614174000" - `separationType` (string) Free-text type or classification of the separation as used in the source system. ## Response 201 fields (application/json): - `childSeparationId` (string, required) Identifier of the child separation, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `contactId` (string, required) Identifier of the associated contact entity, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when the separation record was created. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether this separation is currently active. - `name` (string, required) Human-readable name of the separation (e.g., clinic or department name). - `parentSeparationId` (string, required) Identifier of the parent separation, if any. Example: "123e4567-e89b-12d3-a456-426614174000" - `primaryInventoryLocationId` (string, required) Identifier of the primary inventory location associated with this separation. Example: "123e4567-e89b-12d3-a456-426614174000" - `separationCategory` (string, required) High-level category of the separation (e.g., division, department). Enum: "division", "department", "location", "other" - `separationId` (string, required) Canonical identifier for the separation (e.g., division, department). Example: "123e4567-e89b-12d3-a456-426614174000" - `separationType` (string, required) Free-text type or classification of the separation as used in the source system. - `updatedAt` (string, required) Timestamp when the separation record was last updated. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 409 fields