# Update tag

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

Endpoint: PATCH /site/{siteId}/ahds/v1/tag/{tagId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `tagId` (string, required)
    Tag unique identifier (UUID)

## Request fields (application/json):

  - `associatedResourceId` (string)
    Identifier of the resource this tag is associated with.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `associatedResourceType` (string)
    Type of resource this tag is associated with (e.g., animal, contact, invoice).
    Example: example

  - `categoryId` (string)
    Identifier of the tag category, if applicable.
    Example: 123e4567-e89b-12d3-a456-426614174000

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

  - `isActive` (boolean)
    Whether the tag is currently active and can be used.
    Example: true

  - `name` (string)
    Human-readable tag label.
    Example: example

## Response 200:

  - `200` (unknown)
    Tag updated successfully

## Response 200 fields (application/json):

  - `associatedResourceId` (string, required)
    Identifier of the resource this tag is associated with.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `associatedResourceType` (string, required)
    Type of resource this tag is associated with (e.g., animal, contact, invoice).
    Example: example

  - `categoryId` (string, required)
    Identifier of the tag category, if applicable.
    Example: 123e4567-e89b-12d3-a456-426614174000

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

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

  - `isActive` (boolean, required)
    Whether the tag is currently active and can be used.
    Example: true

  - `name` (string, required)
    Human-readable tag label.
    Example: example

  - `tagId` (string, required)
    Canonical unique identifier for the tag.
    Example: 123e4567-e89b-12d3-a456-426614174000

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

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Tag not found

