---
title: "PUT discount-groups/{id}"
method: PUT
path: "/discount-groups/{id}"
tags: ["Discount Groups"]
---

# PUT discount-groups/{id}

`PUT /discount-groups/{id}`

Update discount group

## Request body

- CreateDiscountGroupRequest
  - `name` string
  - `client` integer — client uid
  - `discount_on_children` integer — allowed values 0 => use discount same discount for each tag 1 => use discount on each tag separately
  - `discount` number — discount percentage
  - `discount_group_tags` object[]
    - `tag` integer — tag uid
    - `discount` number — discount percentage

## Response `200`

OK

- DiscountGroup
  - `uid` integer
  - `crdate` integer
  - `tstamp` integer
  - `crdate_formatted` string
  - `tstamp_formatted` string
  - `name` string
  - `discount` number
  - `discount_on_children` integer

---

[API](https://skmtc.dev/shopbox/apis/shopbox-api.md) · [All operations](https://skmtc.dev/shopbox/apis/shopbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shopbox/shopbox-api/revisions/f1847469718c/schema)
