# Replace operation

Fully replaces an existing Operation. All fields must be provided.

Endpoint: PUT /site/{siteId}/ahds/v1/operation/{operationId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `operationId` (string, required)
    Operation unique identifier (UUID)

## Request fields (application/json):

  - `animalId` (string, required)
    Reference to the animal on which the operation was performed.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `consultId` (string, required)
    Reference to the consult associated with this operation.
    Example: 123e4567-e89b-12d3-a456-426614174000

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

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

  - `outcome` (string, required)
    Free-text description of the outcome of the operation.
    Example: Example description

  - `performedAt` (string, required)
    Date and time when the operation was performed.
    Example: 2025-01-01T00:00:00.000Z

  - `specifics` (string, required)
    Free-text details or notes about the operation.
    Example: Example description

  - `therapeuticId` (string, required)
    Reference to a therapeutic or procedure definition associated with this operation.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `vetId` (string, required)
    Reference to the veterinarian responsible for the operation.
    Example: 123e4567-e89b-12d3-a456-426614174000

## Response 200:

  - `200` (unknown)
    Operation replaced successfully

## Response 200 fields (application/json):

  - `animalId` (string, required)
    Reference to the animal on which the operation was performed.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `consultId` (string, required)
    Reference to the consult associated with this operation.
    Example: 123e4567-e89b-12d3-a456-426614174000

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

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

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

  - `operationId` (string, required)
    Canonical identifier for the operation record.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `outcome` (string, required)
    Free-text description of the outcome of the operation.
    Example: Example description

  - `performedAt` (string, required)
    Date and time when the operation was performed.
    Example: 2025-01-01T00:00:00.000Z

  - `specifics` (string, required)
    Free-text details or notes about the operation.
    Example: Example description

  - `therapeuticId` (string, required)
    Reference to a therapeutic or procedure definition associated with this operation.
    Example: 123e4567-e89b-12d3-a456-426614174000

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

  - `vetId` (string, required)
    Reference to the veterinarian responsible for the operation.
    Example: 123e4567-e89b-12d3-a456-426614174000

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Operation not found

