---
title: "POST /v1/workspaces/{workspaceId}/members/{userId}/transfer-ownership"
method: POST
path: "/v1/workspaces/{workspaceId}/members/{userId}/transfer-ownership"
tags: ["Members"]
---

# POST /v1/workspaces/{workspaceId}/members/{userId}/transfer-ownership

`POST /v1/workspaces/{workspaceId}/members/{userId}/transfer-ownership`

## Request

- Base URL: `https://api.atlas-compiler.com`
- URL: `https://api.atlas-compiler.com/v1/workspaces/{workspaceId}/members/{userId}/transfer-ownership`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required
- `userId` string, required

## Headers

- `idempotency-key` string, required: Deduplicates only after current authentication and authorization succeed. Demotion or revocation can make replay unavailable.

## Response `200`

Success

- object
  - `createdAt` string, date-time, required
  - `displayName` string, nullable, required
  - `email` string, email, nullable, required
  - `role` 'owner' | 'admin' | 'developer' | 'viewer', required
  - `updatedAt` string, date-time, required
  - `userId` string, required

## Other responses

- `400`: RFC 9457 problem.
- `401`: RFC 9457 problem.
- `403`: RFC 9457 problem.
- `404`: RFC 9457 problem.
- `409`: RFC 9457 problem.
- `500`: RFC 9457 problem.
- `503`: RFC 9457 problem.

---

[API](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api.md) · [All operations](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api/revisions/a43b60619cdf?raw)
