---
title: "Update audience feature toggles for a cohort"
method: PATCH
path: "/api/cohorts/{id}/feature-toggles"
tags: ["Cohorts"]
---

# Update audience feature toggles for a cohort

`PATCH /api/cohorts/{id}/feature-toggles`

## Request

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

Toggle participant and/or coach features ON or OFF. When OFF, all audience-facing emails (except calendar invites) are suppressed, the audience is redirected out of the app, and surveys are not scheduled.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `participant_features_enabled` boolean: When false, suppresses participant emails, blocks participant app access, stops survey scheduling
  - `coach_features_enabled` boolean: When false, suppresses coach emails, blocks coach app access, stops survey scheduling
  - `participant_app_access_enabled` boolean: When false, participants cannot use the app. Participant emails continue without links into the app. Has effect only when participant_features_enabled is true.

## Response `200`

Feature toggles updated successfully

- object
  - `success` boolean
  - `data` object
    - `participant_features_enabled` boolean
    - `coach_features_enabled` boolean
    - `participant_app_access_enabled` boolean

## Other responses

- `401`: Unauthorized
- `404`: Cohort not found

---

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