---
title: "Transfer workspace ownership"
method: PUT
path: "/admin/workspaces/{workspaceId}/owner"
tags: ["Admin"]
---

# Transfer workspace ownership

`PUT /admin/workspaces/{workspaceId}/owner`

## Request

- Base URL: `https://cloud.kaneo.app/api`
- URL: `https://cloud.kaneo.app/api/admin/workspaces/{workspaceId}/owner`
- Auth: HTTP bearer

Make an existing member the only owner of a workspace, for example when the previous owner has left. Previous owners become admins. Returns the updated member list. Requires the `workspaces:manage` instance permission; API keys are rejected.

## Path parameters

- `workspaceId` string, required

## Request body

- object
  - `userId` string, required: An existing member who becomes the only owner. Previous owners become admins.

## Response `200`

Updated workspace members

- AdminWorkspaceMember[]
  - `userId` string, required
  - `name` string, required
  - `email` string, required
  - `image` string, nullable, required
  - `role` string, required
  - `joinedAt` string, date-time, required

## Other responses

- `400`: The member is already the only owner
- `401`: Missing or invalid credentials
- `403`: The caller lacks the instance permission or is authenticated with an API key
- `404`: Workspace or member not found
- `429`: The API key exceeded its rate limit or usage quota. Wait the number of seconds in Retry-After before retrying. The X-RateLimit headers are sent only when the rate limit was hit.

## Changes

- **2026-10-08** `c7b8a842601b`: 4 breaking, 5 info
  - removed the media type `text/plain` for the response with the status `400`
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `404`
  - removed the media type `text/plain` for the response with the status `429`
  - …5 more
- **2026-10-08** `2ed51b8af657`: 4 breaking, 4 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `403`
  - removed the media type `application/json` for the response with the status `404`
  - …4 more
- **2026-10-07** `df1439c724ee`: 3 breaking, 4 info
  - removed the media type `text/plain` for the response with the status `400`
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `404`
  - added the media type `application/json` for the response with the status `400`
  - …3 more
- **2026-10-06** `7dace2b05cc2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/admin/workspaces/:workspaceId/owner/put.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) - [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usekaneo/apis/kaneo-api/revisions/741a49dfb347?raw)
