---
title: "Update a cohort"
method: PUT
path: "/api/cohorts/{id}"
tags: ["Cohorts"]
---

# Update a cohort

`PUT /api/cohorts/{id}`

## Request

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

Updates cohort fields including email disable settings

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `disabled_email_recipients` string[]: Recipient types with disabled automated emails

## Response `200`

Cohort updated successfully

## Other responses

- `400`: Invalid request
- `404`: Cohort not found
- `409`: Cohort code or 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)
