---
title: "Create a new group"
method: POST
path: "/v2/groups"
tags: ["Groups"]
---

# Create a new group

`POST /v2/groups`

## Request

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

Create a new group using the provided data.

## 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 `201`

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

- `403`: Forbidden

---

[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)
