# Update productgroup

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

Endpoint: PATCH /site/{siteId}/ahds/v1/productgroup/{productgroupId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `productgroupId` (string, required)
    Productgroup unique identifier (UUID)

## Request fields (application/json):

  - `description` (string)
    Optional description of the product group.
    Example: Example description

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

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

  - `name` (string)
    Human-readable name of the product group.
    Example: Example Name

## Response 200:

  - `200` (unknown)
    Productgroup updated successfully

## Response 200 fields (application/json):

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

  - `description` (string, required)
    Optional description of the product group.
    Example: Example description

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

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

  - `name` (string, required)
    Human-readable name of the product group.
    Example: Example Name

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

  - `updatedAt` (string, required)
    Timestamp when the product group 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)
    Productgroup not found

