---
title: "Transfer Ownership"
method: POST
path: "/teams/{team_id}/transfer-ownership"
tags: ["teams"]
---

# Transfer Ownership

`POST /teams/{team_id}/transfer-ownership`

Owner-only: promote another active member to owner and demote the
caller to admin. Returns the updated roster.

## Path parameters

- `team_id` string, required

## Request body

- OwnershipTransferRequest
  - `new_owner_user_id` string, required

## Response `200`

Successful Response

- TeamMemberResponse[]
  - `team_id` string, required
  - `user_id` string, required
  - `role` 'owner' | 'admin' | 'member', required
  - `added_at` string, date-time, required
  - `email` string, nullable
  - `github_username` string, nullable
  - `avatar_url` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/8c05b8b9a5c4?raw)
