# Update history

Partially updates an existing History. Only provided fields will be updated.

Endpoint: PATCH /site/{siteId}/ahds/v1/history/{historyId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `historyId` (string, required)
    History unique identifier (UUID)

## 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.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `comments` (string)
    Free-text comments or narrative for this history entry.
    Example: example

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

  - `historySystem` (string)
    Source or subsystem that created or owns this history record.
    Example: example

  - `isActive` (boolean)
    Whether this history record is active.
    Example: true

  - `vetId` (string)
    Identifier of the veterinarian associated with this history record.
    Example: 123e4567-e89b-12d3-a456-426614174000

## Response 200:

  - `200` (unknown)
    History updated successfully

## Response 200 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.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `comments` (string, required)
    Free-text comments or narrative for this history entry.
    Example: example

  - `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.
    Example: example

  - `isActive` (boolean, required)
    Whether this history record is active.
    Example: true

  - `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:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    History not found

