---
title: "Update a group"
method: PUT
path: "/cohorts/{cohortId}/groups/{groupId}"
tags: ["Groups"]
---

# Update a group

`PUT /cohorts/{cohortId}/groups/{groupId}`

## Request

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

Updates a group's details

## Path parameters

- `cohortId` string, uuid, required
- `groupId` string, uuid, required

## Request body

- object
  - `name` string
  - `description` string
  - `maxSize` integer
  - `coachId` string, uuid
  - `isActive` boolean
  - `timeSlotIdentifier` string, nullable: Time slot identifier to assign (e.g. "ACME-TS1"), or null to unassign

## Response `200`

Group updated. When time slot is changed, response includes _timeSlotUpdate with sessionsUpdated and sessionsSkippedInvited counts (MED-648).

## Other responses

- `400`: Invalid input, time slot identifier not found, or time slot locked (all future sessions have invitations sent)
- `404`: Cohort or group 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)
