---
title: "Update a group"
method: PATCH
path: "/v2/groups/{id}"
tags: ["Groups"]
---

# Update a group

`PATCH /v2/groups/{id}`

## Request

- Base URL: `https://developers.brandtrack.ai/api.brandtrack.fm`
- URL: `https://developers.brandtrack.ai/api.brandtrack.fm/v2/groups/{id}`
- Auth: API key in header `x-customer-api-key`
- TypeScript: <https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation/docs/v2/groups/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a group with the data provided in the request.

## Headers

- `x-customer-api-key` string

## Request body

- object
  - `account_id` integer, nullable: The <code>id</code> of an existing record in the accounts table.
  - `music_profile_id` integer, nullable: The <code>id</code> of an existing record in the music_profiles table.
  - `name` string, required

## Response `200`

Success

- object
  - `data` object
    - `id` integer
    - `account_id` integer
    - `music_profile_id` string
    - `name` string
    - `analytics` object
      - `data` object
        - `players` integer
        - `announcements` integer
        - `mixes` integer
        - `radios` integer

## Other responses

- `404`: Wrong ID

---

[API](https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation.md) - [All operations](https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation/revisions/a2c747489f3a?raw)
