---
title: "Regenerate task assignees after team assignment changes"
method: POST
path: "/cohorts/{id}/regenerate-team-assignments"
tags: ["Cohorts"]
---

# Regenerate task assignees after team assignment changes

`POST /cohorts/{id}/regenerate-team-assignments`

## Request

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

Re-resolves task assignees from the updated team assignment mapping.
Only updates tasks where assignee_manually_set = false,
status is not complete/cancelled, and job_title_id matches a changed role.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `changedJobTitleIds` string[], required: Job title IDs whose team assignment changed

## Response `200`

Regeneration results

- object
  - `updatedCount` integer
  - `eligibleCount` integer
  - `skippedManualCount` integer

## Other responses

- `400`: Bad request
- `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)
