---
title: "Reassign a participant"
method: PUT
path: "/api/v5/challenges/coaching/teams/{old_team_id}/reassign"
tags: ["Challenges Coaching"]
---

# Reassign a participant

`PUT /api/v5/challenges/coaching/teams/{old_team_id}/reassign`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/challenges/coaching/teams/{old_team_id}/reassign`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/challenges/coaching/teams/:old_team_id/reassign/put.ts> (a function with typed inputs; its response is checked against the schema)

Reassign a participant from a team to another within the same challenge

## Path parameters

- `old_team_id` integer, required

## Request body

- BodyCoachingReassignParticipantApiV5ChallengesCoachingTeamsOldTeamIdReassignPut
  - `challenge_team_user` ChallengeTeamUserInUpdate, required
    - `challengeTeamId` integer, required
    - `userId` integer, required

## Response `200`

Successful Response

- ChallengeTeamUserInResponse
  - `challengeTeamUser` ChallengeTeamUser, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `challengeTeamId` integer, required
    - `userId` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
