---
title: "Create a new group"
method: POST
path: "/cohorts/{cohortId}/groups"
tags: ["Groups"]
---

# Create a new group

`POST /cohorts/{cohortId}/groups`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/groups`
- Auth: none declared

Creates a new group in the cohort

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `name` string, required
  - `description` string
  - `maxSize` integer
  - `coachId` string, uuid

## Response `201`

Group created

## Other responses

- `400`: Invalid input
- `404`: Cohort not found
- `409`: Group name already exists

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
