---
title: "Updates a group"
method: PUT
path: "/admin/groups/{id}"
tags: ["groups"]
---

# Updates a group

`PUT /admin/groups/{id}`

## Request body

- object
  - `group` object
    - `name` string — Name of the group
    - `commissions` object — Commission structure for this group
      - `standard` object
        - `commission_type` 'percentage' | 'flat_rate' | 'fixed_amount_on_order'
        - `commission_value` integer
      - `specific` object[] — List of products/collections which have a different commission than the default commission
        - `commission_type` 'percentage' | 'flat_rate'
        - `commission_value` integer
        - `product` object
          - `id` string
          - `name` string
        - `collection` object
          - `id` string
          - `name` string
      - `mlm` object[] — MLM commission rates for every level
        - `level` integer — The level on which this commission rate applies to
        - `commission_type` 'percentage' | 'flat_rate'
        - `commission_value` integer

## Response `200`

- object
  - `id` string

## Other responses

- `403` — Not authenticated

---

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