---
title: "Update cohort"
method: PUT
path: "/experiments/{experimentId}/cohorts/{cohortId}"
tags: ["cohorts"]
---

# Update cohort

`PUT /experiments/{experimentId}/cohorts/{cohortId}`

Update an existing cohort's metadata and participant configuration.

**Partial updates:** Only provided fields are updated. Omit fields you don't want to change.

**Note:** The `variableMap` and `stageUnlockMap` cannot be modified via API - they are managed internally.

## Path parameters

- `experimentId` string, required
- `cohortId` string, required

## Request body

- object
  - `name` string — Updated cohort name
  - `description` string — Updated description
  - `participantConfig` CohortParticipantConfig — Configuration for participants within a cohort
    - `minParticipantsPerCohort` integer — Minimum number of participants required
    - `maxParticipantsPerCohort` integer — Maximum number of participants allowed
    - `includeAllStagesInProgressBar` boolean — Whether to show all stages in the progress bar
    - `enableParticipantStageReset` boolean — Whether participants can reset stages
    - `showStageDescriptions` boolean — Whether to show stage descriptions to participants

## Response `200`

Cohort updated successfully

- object
  - `updated` boolean
  - `id` string

## Other responses

- `400` — Bad request - Invalid input
- `401` — Unauthorized - Missing or invalid API key
- `403` — Forbidden - Insufficient permissions or browser access attempted
- `404` — Not found - Resource doesn't exist
- `429` — Too many requests - Rate limit exceeded

---

[API](https://skmtc.net/pair-code/apis/deliberate-lab-api.md) · [All operations](https://skmtc.net/pair-code/apis/deliberate-lab-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pair-code/deliberate-lab-api/revisions/f58e6c25e4f8/schema)
