# Create history Creates a new History record. History resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/history Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `animalId` (string) Identifier of the animal associated with this history record. Example: "123e4567-e89b-12d3-a456-426614174000" - `chain` (string) Chain or grouping identifier for related history records. - `comments` (string) Free-text comments or narrative for this history entry. - `consultId` (string) Identifier of the consult associated with this history record. Example: "123e4567-e89b-12d3-a456-426614174000" - `eventAt` (string) Timestamp of the clinical or system event represented by this history record. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object) Vendor- or practice-specific extensions. - `historyId` (string, required) Unique identifier for this history record. Example: "123e4567-e89b-12d3-a456-426614174000" - `historySystem` (string) Source or subsystem that created or owns this history record. - `isActive` (boolean, required) Whether this history record is active. - `vetId` (string) Identifier of the veterinarian associated with this history record. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 201 fields (application/json): - `animalId` (string, required) Identifier of the animal associated with this history record. Example: "123e4567-e89b-12d3-a456-426614174000" - `chain` (string, required) Chain or grouping identifier for related history records. - `comments` (string, required) Free-text comments or narrative for this history entry. - `consultId` (string, required) Identifier of the consult associated with this history record. Example: "123e4567-e89b-12d3-a456-426614174000" - `createdAt` (string, required) Timestamp when this history record was created. Example: "2025-01-01T00:00:00.000Z" - `eventAt` (string, required) Timestamp of the clinical or system event represented by this history record. Example: "2025-01-01T00:00:00.000Z" - `extensions` (object, required) Vendor- or practice-specific extensions. - `historyId` (string, required) Unique identifier for this history record. Example: "123e4567-e89b-12d3-a456-426614174000" - `historySystem` (string, required) Source or subsystem that created or owns this history record. - `isActive` (boolean, required) Whether this history record is active. - `updatedAt` (string, required) Timestamp when this history record was last updated. Example: "2025-01-01T00:00:00.000Z" - `vetId` (string, required) Identifier of the veterinarian associated with this history record. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 400 fields ## Response 401 fields ## Response 409 fields