---
title: "Replace product group"
method: PUT
path: "/v1/ProductGroups/{id}"
tags: ["ProductGroups"]
---

# Replace product group

`PUT /v1/ProductGroups/{id}`

Replace an existing product group.

## Path parameters

- `id` integer, required

## Request body

- RevAppModelsProductGroup
  - `product_group_id` integer — Primary identifier for this product group.
  - `description` string, required — Short description of this product group.
  - `products` RevAppModelsProductGroupProduct[] — List of product IDs to insert into the product group.
    - `product_id` integer — Primary identifier for this product type.
    - `lead_product_flag` boolean, required — Indicates whether this product would be the lead product
    - `can_remove` boolean — Sets Independent_Remove_Flag.
    - `links` RevAppComponentsLink[]
      - `rel` string
      - `href` string
  - `links` RevAppComponentsLink[]
    - `rel` string
    - `href` string

## Response `200`

OK

- RevWebAPIModelsSuccess
  - `ok` boolean

## Other responses

- `400` — BadRequest
- `500` — InternalServerError

---

[API](https://skmtc.net/rev-io/apis/rev-io-api.md) · [All operations](https://skmtc.net/rev-io/apis/rev-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rev-io/rev-io-api/revisions/135571434f6c/schema)
