---
title: "Duplicate a cohort"
method: POST
path: "/cohorts/{id}/duplicate"
tags: ["Cohorts"]
---

# Duplicate a cohort

`POST /cohorts/{id}/duplicate`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{id}/duplicate`
- Auth: HTTP bearer

Create a copy of an existing cohort with the same modality configuration.
The duplicated cohort will have:
- Same partner and program association
- Same modality configuration (with workshops)
- Same scheduling preferences (preferred days/times)
- Name set to "[Original Name] (copy)" unless custom name provided
- New auto-generated cohort code
- No dates (start/end dates cleared)
- No participants, groups, or coach assignments
- Status set to 'draft'

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string: Custom name for the duplicated cohort (optional)

## Response `201`

Cohort duplicated successfully

- object
  - `success` boolean
  - `data` Cohort
    - `id` string, uuid
    - `partner_id` string, uuid
    - `program_id` string, uuid
    - `name` string
    - `short_name` string
    - `code` string
    - `description` string
    - `status` 'setup' | 'ready' | 'live' | 'paused' | 'completed' | 'cancelled'
    - `cohort_type` string
    - `start_date` string, date
    - `end_date` string, date
    - `preferred_days` string[]
    - `preferred_times` string[]
    - `participant_capacity` integer
    - `is_active` boolean
    - `created_at` string, date-time
  - `message` string

## Other responses

- `401`: Unauthorized
- `404`: Source cohort not found
- `409`: Cohort name already exists for this program
- `422`: Validation error

---

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